From 990cca7029cd2b039f051db108bc65a07b18eec6 Mon Sep 17 00:00:00 2001 From: Hanna Date: Sun, 6 Oct 2024 13:17:23 +0300 Subject: [PATCH] Hanna --- css/base/_media.css | 16 + css/main-dist.css | 1 + css/main.css | 364 ++++---------- index.html | 5 + js/script.js | 2 +- sass/base/_media.scss | 992 +++++++++++++++++++++++++-------------- sass/blocks/_header.scss | 1 + 7 files changed, 755 insertions(+), 626 deletions(-) create mode 100644 css/base/_media.css create mode 100644 css/main-dist.css diff --git a/css/base/_media.css b/css/base/_media.css new file mode 100644 index 00000000..c774a23d --- /dev/null +++ b/css/base/_media.css @@ -0,0 +1,16 @@ +@media (max-width: 900px) { + .header__title { + font-size: 48px; + margin-bottom: 20px; + } + .header__text { + width: 100%; + } + .header__img img { + width: 100%; + margin: 0 auto; + } +} +.header__title { + font-size: 42px; +} \ No newline at end of file diff --git a/css/main-dist.css b/css/main-dist.css new file mode 100644 index 00000000..8c4cff64 --- /dev/null +++ b/css/main-dist.css @@ -0,0 +1 @@ +@charset "UTF-8";*{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0}a{color:inherit;text-decoration:none}h1,h2,h3,h4,h5,h6,p{font-size:inherit}button,input{border:none;font-family:inherit;font-size:inherit}button,input[type=submit]{background:none;cursor:pointer}button:focus,input:focus{outline:none}li,ul{list-style:none}img{display:block;max-width:100%}html{scroll-behavior:smooth}body{font-family:"Poppins",sans-serif;font-size:16px;line-height:1.687;color:#323232}.container{max-width:1340px;margin-left:auto;margin-right:auto;padding-left:15px;padding-right:15px}.container--fluid{max-width:unset;width:100%}.container--no--padding{padding:0}.visually-hiden{opacity:0;visibility:hidden;width:0;height:0;display:block;margin-left:-10000px;background:transparent;font-size:0}.none{display:none}.nav{padding-top:35px;padding-bottom:33px}.nav__row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navigation-list .nav__link{display:inline-block;margin:0 3rem;color:var(--black-color);-webkit-transition:all transform 0.5s ease-out;transition:all transform 0.5s ease-out}.navigation-list .nav__link:hover{-webkit-transform:scale(1.2);transform:scale(1.2);color:var(--your-hover-color);-webkit-transition:all transform 0.5s ease-out;transition:all transform 0.5s ease-out}.logo{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:24px;font-weight:700;line-height:1}.logo img{margin-right:10px}.form{border-radius:29px;background:#fff;-webkit-box-shadow:0px 17px 42px 0px rgba(0,0,0,0.12);box-shadow:0px 17px 42px 0px rgba(0,0,0,0.12);height:58px;-webkit-transition:-webkit-box-shadow 0.2s ease-in;transition:-webkit-box-shadow 0.2s ease-in;transition:box-shadow 0.2s ease-in;transition:box-shadow 0.2s ease-in,-webkit-box-shadow 0.2s ease-in;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.form--active{-webkit-box-shadow:0px 17px 42px 0px rgba(247,132,52,0.27);box-shadow:0px 17px 42px 0px rgba(247,132,52,0.27)}.form__label{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding-left:72px;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.form__label:before{position:absolute;top:20px;left:28px;content:"";display:block;width:24px;height:19px;background-image:url("./../img/icons/mail.svg");background-size:initial}.form__input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-right:10px;width:220px}.form__input::-webkit-input-placeholder{color:#bbb}.form__input::-moz-placeholder{color:#bbb}.form__input:-ms-input-placeholder{color:#bbb}.form__input::-ms-input-placeholder{color:#bbb}.form__input::placeholder{color:#bbb}.navigation-list ul{display:-webkit-box;display:-ms-flexbox;display:flex}.navigation-list li{margin-right:42px}.navigation-list li:last-child{margin-right:0}.navigation-list a{-webkit-transition:color 0.2s ease;transition:color 0.2s ease}.navigation-list a:hover{color:#f78434}.navigation-list a.active{color:#f78434;font-weight:700}.header__row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.header__text{width:465px}.header__text p{line-height:1.6875;margin-bottom:1em}.header__title{margin-right:-160px;position:relative;z-index:9;font-size:54px;margin-bottom:25px;font-weight:700;line-height:1.46}.header__img img{border-radius:40px 40px 40px 0}.header__form{margin-top:42px}.testimonials{padding-top:60px;padding-bottom:60px}.testimonials__heading{margin-bottom:60px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.testimonials__title{max-width:452px}.testimonials__subtitle{max-width:400px}.testimonials__row{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-column-gap:30px;-moz-column-gap:30px;column-gap:30px}.card-testimonial{border-radius:5px;overflow:hidden;max-width:350px;-webkit-transition:-webkit-box-shadow 0.2s ease-in;transition:-webkit-box-shadow 0.2s ease-in;transition:box-shadow 0.2s ease-in;transition:box-shadow 0.2s ease-in,-webkit-box-shadow 0.2s ease-in}.card-testimonial:hover{-webkit-box-shadow:0px 10px 52px 0px rgba(0,0,0,0.08);box-shadow:0px 10px 52px 0px rgba(0,0,0,0.08)}.card-testimonial:hover .card-testimonial__btn-play{opacity:1;-webkit-transform:translateY(0%);transform:translateY(0%)}.card-testimonial:hover .card-testimonial__img{-webkit-transform:scale(1.2);transform:scale(1.2)}.card-testimonial__img{-o-object-fit:cover;object-fit:cover;width:100%;-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out;min-height:220px}.card-testimonial__img-wrapper{overflow:hidden;position:relative;max-height:220px}.card-testimonial__btn-play{position:absolute;z-index:1;right:20px;bottom:20px;opacity:0;-webkit-transform:translateY(25%);transform:translateY(25%);-webkit-transition:opacity 0.2s ease-in,-webkit-transform 0.2s ease-in;transition:opacity 0.2s ease-in,-webkit-transform 0.2s ease-in;transition:opacity 0.2s ease-in,transform 0.2s ease-in;transition:opacity 0.2s ease-in,transform 0.2s ease-in,-webkit-transform 0.2s ease-in}.card-testimonial__btn-svg circle{fill:#d6cee3;-webkit-transition:fill 0.2s ease-in;transition:fill 0.2s ease-in}.card-testimonial__btn-svg path{fill:#615478;-webkit-transition:fill 0.2s ease-in;transition:fill 0.2s ease-in}.card-testimonial__btn-svg:hover circle{fill:#615478}.card-testimonial__btn-svg:hover path{fill:#d6cee3}.card-testimonial__body{padding:30px}.card-testimonial__text{margin-bottom:23px}.card-testimonial__name{font-size:18px;font-weight:700}.card-testimonial__city{color:#58bebf;-webkit-transition:color 0.2s ease-in;transition:color 0.2s ease-in}.card-testimonial:hover .card-testimonial__city{color:#f78434}.button{display:inline-block;height:58px;padding-left:37px;padding-right:37px;border-radius:5px;background-color:none;border:2px solid black;line-height:55px;font-weight:400;color:black;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in}.button:hover{background-color:#262626;color:white}.button--white{background-color:#fff;color:#323232;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in}.button--white:hover{background-color:#323232;color:#fff}.button--play{padding-left:50px;position:relative}.button--play:before{content:"";display:block;width:12px;height:12px;background-image:url(./../img/icons/play.svg);background-size:initial;background-repeat:no-repeat;position:absolute;left:30px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.title{font-size:42px;font-weight:700;line-height:1.476}.footer{padding-top:86px;padding-bottom:20px;background:-webkit-gradient(linear,left top,left bottom,from(#555),to(#222));background:linear-gradient(to bottom,#555,#222);color:#ffffff;margin-top:auto;width:100%;font-family:"Poppins",sans-serif;position:relative}.footer__row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.footer__info{max-width:300px}.footer__logo{margin-bottom:15px}.footer__info-text{margin-bottom:40px}.footer__socials{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:30px;-moz-column-gap:30px;column-gap:30px}.footer__socials a:hover{opacity:0.7}.footer__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-column-gap:185px;-moz-column-gap:185px;column-gap:185px}.footer__nav-block{font-size:14px}.footer__nav-block li{margin-bottom:13px}.footer__nav-block a:hover{color:#f78434}.footer__nav-block-title{font-size:21px;font-weight:700;margin-bottom:18px}.footer__row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.footer__info{max-width:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.footer__info-text{width:100%;text-align:justify;line-height:1.4}.footer__socials{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:30px;-moz-column-gap:30px;column-gap:30px}.footer__socials a:hover{opacity:0.7}.footer__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-column-gap:85px;-moz-column-gap:85px;column-gap:85px}.footer__nav-block{font-size:14px}.footer__nav-block ul{list-style:none;padding:0}.footer__nav-block li{margin-bottom:13px}.footer__nav-block a{color:#ffffff;text-decoration:none;position:relative;-webkit-transition:color 0.3s;transition:color 0.3s}.footer__nav-block a:after{content:"";display:block;width:0;height:2px;background:#a09d9d;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;position:absolute;bottom:-2px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.footer__nav-block a:hover:after{width:100%}.footer__nav-block-title{font-size:21px;font-weight:700;margin-bottom:18px;color:#fff;position:relative}.footer__nav-block-title:after{content:"";display:block;width:100%;height:2px;background:#f39c12;margin-top:5px}.footer__divider{width:100%;height:1px;background-color:#777;margin:40px 0}.footer__bottom{text-align:center;padding-top:20px;margin-top:20px}.footer__bottom p{margin:0;font-size:14px;color:#aaa}@media (max-width:1200px){.container{max-width:1140px}}@media (max-width:992px){.container{max-width:960px}.nav__row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.navigation-list li{margin-right:20px}.header__img img,.header__text{width:100%}}@media (max-width:768px){.container{max-width:720px}.header__title{font-size:36px;margin-bottom:20px}.header__img img{max-width:100%}.testimonials__row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.card-testimonial{max-width:100%}.footer__nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}}@media (max-width:576px){.container{max-width:540px;padding-left:10px;padding-right:10px}.header__title{font-size:32px;margin-bottom:20px}.header__text{font-size:14px}.form__input{width:100%}.navigation-list li{margin-right:10px}.footer__nav{gap:30px}}@media (max-width:768px){.title{font-size:28px}.header__title{font-size:32px;margin-bottom:20px}.footer__info-text{font-size:12px}}@media (max-width:576px){.button{padding-left:20px;padding-right:20px;font-size:14px}.form__input{padding-left:10px;margin-right:5px}}@media (max-width:576px){.container{padding:0 10px}.nav__row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;gap:20px}.navigation-list li{margin-right:30px}} \ No newline at end of file diff --git a/css/main.css b/css/main.css index 2f446013..7bfc47c2 100755 --- a/css/main.css +++ b/css/main.css @@ -657,335 +657,163 @@ body { color: #aaa; } -@media (max-width: 1500px) { - .contacts::before { - left: 40%; +@media screen and (max-width: 1024px) { + .container { + max-width: 100%; + padding-left: 10px; + padding-right: 10px; } - .contacts::after { - left: 40%; - } -} -@media (max-width: 1270px) { - .contacts::before { - left: 27%; - } - .contacts::after { - left: 27%; - } - .testimonials__row::after { - right: -10px; - top: -20px; + .nav__row { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; } - .objects__text { - padding-left: 130px; - padding-right: 100px; + .navigation-list .nav__link { + margin: 0 1rem; } .header__text { - margin-right: 20px; + font-size: 16px; + min-width: 80%; + line-height: 1.5; } -} -@media (max-width: 1024px) { - .contacts { - overflow-y: hidden; - } - .contacts::before { - left: 20%; - width: 80%; - background-repeat: no-repeat; + .header__title { + font-size: 42px; } - .contacts::after { - left: 20%; - max-width: 69%; - background-repeat: no-repeat; + .header__img img { + width: 100%; + border-radius: 20px; } - .footer__nav { - -webkit-column-gap: 50px; - -moz-column-gap: 50px; - column-gap: 50px; + .testimonials__row { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + row-gap: 30px; } - .cta__buttons-row .button { - min-width: 180px; - text-align: center; + .card-testimonial { + max-width: 100%; } - .benefits__row { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; + .footer__nav { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; row-gap: 30px; - -webkit-box-pack: space-evenly; - -ms-flex-pack: space-evenly; - justify-content: space-evenly; + } + .footer__socials { + -ms-flex-pack: distribute; + justify-content: space-around; } } -@media (max-width: 930px) { - .cta__text { +@media screen and (max-width: 768px) { + .nav { padding-top: 20px; padding-bottom: 20px; } - .img-card__img { - max-width: 80%; - } - .objects__text { - padding-left: 70px; - } - .img-card__info { - right: 50px; + .nav__row { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; } - .card-info__text { - width: 150px; + .navigation-list li { + margin-right: 20px; } - .card-info { - padding: 15px; - font-size: 12px; - width: auto; + .header__title { + font-size: 28px; + text-align: center; } - .card-info__icon img { + .header__img img { width: 100%; } - .img-card { - max-width: 350px; - } -} -@media (max-width: 850px) { - .testimonials__row::after { - background: none; - } - .clients { - padding-top: 70px; - padding-bottom: 35px; - } - .clients__row img { - max-width: 150px; - } - .footer__nav { - -webkit-column-gap: 30px; - -moz-column-gap: 30px; - column-gap: 30px; - } - .serve__row { + .form { + height: auto; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; - row-gap: 30px; - padding: 0 100px; - } -} -@media (max-width: 832px) { - .benefits { - padding-bottom: 55px; - } - .cta { - padding-top: 35px; - padding-bottom: 35px; - } - .objects { - padding-bottom: 40px; + padding: 15px; } - .serve { - padding-bottom: 60px; + .form__label { + padding-left: 20px; } - .serve::before { + .form__input { width: 100%; - height: 100%; - top: -25%; - left: 0; - } - .navigation-list li { - margin-right: 22px; - } - .cta__text { - padding-left: 45px; - } - .objects__row { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - } - .objects__text { - padding: 0; - } - .objects__img { - display: none; + margin-right: 0; } .testimonials__heading { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; + } + .button { + width: 100%; text-align: center; - row-gap: 10px; } - .testimonials__row { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - row-gap: 30px; + .footer { + padding-top: 40px; + padding-bottom: 40px; } - .benefits__row { + .footer__row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } -} -@media (max-width: 700px) { + .footer__info, .footer__nav { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - min-width: 320px; + text-align: center; } .footer__socials { - -webkit-box-orient: vertical; + -webkit-box-orient: horizontal; -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - row-gap: 20px; - margin-top: 10px; - margin-right: 10px; - } - .footer__info-text { - display: none; - } - .footer__logo { - display: none; - } - .nav__none { - display: none; - } - .cta__text { - padding-top: 10px; - padding-bottom: 10px; - } - .cta__buttons-row .button { - min-width: unset; - } - .button { - max-width: unset; - height: 48px; - line-height: 48px; - font-size: 12px; - padding-left: 27px; - padding-right: 27px; - } - .button--play { - padding-left: 50px; - } - .button--play::before { - left: 28px; - top: 51%; - } - .header__title { - font-size: 42px; - } - .header__text { - width: 365px; - } - .header__form .button { - height: 48px; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - font-size: 14px; - font-weight: 600; - } - .form__label { - padding-left: 50px; - } - .form__label::before { - top: 14px; - left: 15px; - } - .header__form { - height: 48px; - font-size: 14px; - } - .form__input { - width: 140px; - } - p { - font-size: 14px; - } - .title { - font-size: 31px; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; } - .serve__row { +} +@media screen and (max-width: 480px) { + .nav__row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; - row-gap: 30px; - padding: 0 50px; - } - .contacts .container { - display: -webkit-box; - display: -ms-flexbox; - display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } - .contacts::before { - display: none; - } - .contacts::after { - display: none; - } -} -@media (max-width: 650px) { - .header__img { - display: none; - } - .contacts { - overflow-y: initial; - } - .clients { - padding-top: 70px; - padding-bottom: 35px; - } - .clients__row img { - max-width: 100px; + .header__title { + font-size: 24px; } -} -@media (max-width: 630px) { - .cta__img { - display: none; + .form { + height: auto; + padding: 10px; } -} -@media (max-width: 530px) { - .card-customer { - padding: 40px 44px; - } - .header__title { - max-width: 320px; - font-size: 35px; + .form__input { + width: 100%; + font-size: 14px; } -} -@media (max-width: 450px) { - .testimonials { - padding-bottom: 0; + .card-testimonial__name { + font-size: 16px; } - .cta__text { - width: 375px; - padding-right: 0; - padding-left: 25px; + .footer__nav-block { + font-size: 12px; } - .clients { - display: none; + .button { + height: 50px; + line-height: 50px; } } \ No newline at end of file diff --git a/index.html b/index.html index 62c0c244..2320db51 100755 --- a/index.html +++ b/index.html @@ -355,6 +355,11 @@ + + + + + diff --git a/js/script.js b/js/script.js index 1a3fdbb7..3cca30e5 100755 --- a/js/script.js +++ b/js/script.js @@ -11,7 +11,7 @@ input.addEventListener('blur', function (){ }) - +//Форма підтвердження дзвінка function confirmCall(number) { const confirmMessage = `Ви впевнені, що хочете зателефонувати на номер ${number}?`; if (confirm(confirmMessage)) { diff --git a/sass/base/_media.scss b/sass/base/_media.scss index 42c637e7..4fb414fc 100755 --- a/sass/base/_media.scss +++ b/sass/base/_media.scss @@ -1,364 +1,642 @@ -@media (max-width: 1500px) { - .contacts { - &::before { - left: 40%; - } - &::after { - left: 40%; - } - } +// // @media (max-width: 1500px) { +// // .contacts { +// // &::before { +// // left: 40%; +// // } +// // &::after { +// // left: 40%; +// // } +// // } +// // } + +// // @media (max-width: 1200px) { +// // .contacts { +// // &::before { +// // left: 27%; +// // } +// // &::after { +// // left: 27%; +// // } +// // } + +// // .testimonials__row { +// // &::after { +// // right: -10px; +// // top: -20px; +// // } +// // } + +// // .objects__text { +// // padding-left: 130px; +// // padding-right: 100px; +// // } + +// // .header__text { +// // margin-right: 20px; +// // } +// // } + +// // @media (max-width: 1000px) { +// // .contacts { +// // overflow-y: hidden; +// // &::before { +// // left: 20%; +// // width: 80%; +// // background-repeat: no-repeat; +// // } +// // &::after { +// // left: 20%; +// // max-width: 69%; +// // background-repeat: no-repeat; +// // } +// // } + +// // .footer__nav { +// // column-gap: 50px; +// // } + +// // .cta__buttons-row { +// // .button { +// // min-width: 180px; +// // text-align: center; +// // } +// // } +// // .benefits__row { +// // display: flex; +// // flex-wrap: wrap; +// // row-gap: 30px; +// // justify-content: space-evenly; +// // } +// // } + +// // @media (max-width: 800px) { +// // .cta__text { +// // padding-top: 20px; +// // padding-bottom: 20px; +// // } + +// // .img-card__img { +// // max-width: 80%; +// // } + +// // .objects__text { +// // padding-left: 70px; +// // } + +// // .img-card__info { +// // right: 50px; +// // } + +// // .card-info__text { +// // width: 150px; +// // } + +// // .card-info { +// // padding: 15px; +// // font-size: 12px; +// // width: auto; +// // } + +// // .card-info__icon img { +// // width: 100%; +// // } + +// // .img-card { +// // max-width: 350px; +// // } +// // } + +// // @media (max-width: 600px) { +// // .testimonials__row { +// // &::after { +// // background: none; +// // } +// // } + +// // .clients { +// // padding-top: 70px; +// // padding-bottom: 35px; +// // } +// // .clients__row { +// // img { +// // max-width: 150px; +// // } +// // } + +// // .footer__nav { +// // column-gap: 30px; +// // } +// // .serve__row { +// // flex-direction: column; +// // row-gap: 30px; +// // padding: 0 100px; +// // } +// // } + +// // @media (max-width: 832px) { +// // .benefits { +// // padding-bottom: 55px; +// // } + +// // .cta { +// // padding-top: 35px; +// // padding-bottom: 35px; +// // } + +// // .objects { +// // padding-bottom: 40px; +// // } + +// // .serve { +// // padding-bottom: 60px; +// // &::before { +// // width: 100%; +// // height: 100%; + +// // top: -25%; +// // left: 0; +// // } +// // } + +// // .navigation-list li { +// // margin-right: 22px; +// // } + +// // .cta__text { +// // padding-left: 45px; +// // } + +// // .objects__row { +// // justify-content: center; +// // } + +// // .objects__text { +// // padding: 0; +// // } + +// // .objects__img { +// // display: none; +// // } + +// // .testimonials__heading { +// // flex-direction: column; +// // text-align: center; +// // row-gap: 10px; +// // } +// // .testimonials__row { +// // flex-direction: column; +// // align-items: center; +// // row-gap: 30px; +// // } + +// // .benefits__row { +// // flex-direction: column; +// // justify-content: center; +// // align-items: center; +// // } +// // } + +// // @media (max-width: 700px) { +// // .footer__nav { +// // flex-wrap: wrap; +// // min-width: 320px; +// // } + +// // .footer__socials { +// // flex-direction: column; +// // row-gap: 20px; +// // margin-top: 10px; +// // margin-right: 10px; +// // } + +// // .footer__info-text { +// // display: none; +// // } + +// // .footer__logo { +// // display: none; +// // } + +// // .nav__none { +// // display: none; +// // } + +// // .cta__text { +// // padding-top: 10px; +// // padding-bottom: 10px; +// // } + +// // .cta__buttons-row .button { +// // min-width: unset; +// // } + +// // .button { +// // max-width: unset; +// // height: 48px; +// // line-height: 48px; +// // font-size: 12px; +// // padding-left: 27px; +// // padding-right: 27px; + +// // &--play { +// // padding-left: 50px; +// // &::before { +// // left: 28px; +// // top: 51%; +// // } +// // } +// // } + +// // .header__title { +// // font-size: 42px; +// // } + +// // .header__text { +// // width: 365px; +// // } + +// // .header__form .button { +// // height: 48px; +// // display: flex; +// // align-items: center; +// // font-size: 14px; +// // font-weight: 600; +// // } + +// // .form__label { +// // padding-left: 50px; +// // &::before { +// // top: 14px; +// // left: 15px; +// // } +// // } + +// // .header__form { +// // height: 48px; +// // font-size: 14px; +// // } + +// // .form__input { +// // width: 140px; +// // } + +// // p { +// // font-size: 14px; +// // } + +// // .title { +// // font-size: 31px; +// // } + +// // .serve__row { +// // flex-direction: column; +// // row-gap: 30px; +// // padding: 0 50px; +// // } + +// // .contacts { +// // .container { +// // display: flex; +// // justify-content: center; +// // } +// // &::before { +// // display: none; +// // } +// // &::after { +// // display: none; +// // } +// // } +// // } +// // @media (max-width: 650px) { +// // // .header__row { +// // // justify-content: center; +// // // text-align: center; +// // // } +// // .header__img { +// // display: none; +// // } +// // .contacts { +// // overflow-y: initial; +// // } + +// // .clients { +// // padding-top: 70px; +// // padding-bottom: 35px; +// // } +// // .clients__row { +// // img { +// // max-width: 100px; +// // } +// // } +// // } + +// // @media (max-width: 630px) { +// // .cta__img { +// // display: none; +// // } +// // } + +// // @media (max-width: 530px) { +// // .card-customer { +// // padding: 40px 44px; +// // } + +// // .header__title { +// // max-width: 320px; +// // font-size: 35px; +// // } +// // } + +// // @media (max-width: 450px) { +// // .testimonials { +// // padding-bottom: 0; +// // } + +// // .cta__text { +// // width: 375px; +// // padding-right: 0; +// // padding-left: 25px; +// // } + +// // .clients { +// // display: none; +// // } +// // } + + + + +// @media (max-width: 1200px) { +// .container { +// max-width: 1140px; +// } +// } + +// @media (max-width: 992px) { +// .container { +// max-width: 960px; +// } +// .nav__row { +// flex-direction: column; +// justify-content: space-between; +// align-items: flex-start; +// padding-left: 10px; +// } +// } +// .navigation-list li { +// margin-right: 20px; +// } +// .header__text, +// .header__img img { +// width: 100%; +// } + + + +// @media (max-width: 768px) { +// .container { +// max-width: 720px; +// } +// .header__title { +// font-size: 36px; +// margin-bottom: 20px; +// } +// .header__img img { +// max-width: 100%; +// } +// .testimonials__row { +// flex-direction: column; +// } +// .card-testimonial { +// max-width: 100%; +// } +// .footer__nav { +// flex-direction: column; +// align-items: flex-start; +// } +// } + +// @media (max-width: 576px) { +// .container { +// max-width: 540px; +// padding-left: 10px; +// padding-right: 10px; +// } +// .header__title { +// font-size: 32px; +// margin-bottom: 20px; +// } +// .header__text { +// font-size: 14px; +// } +// .form__input { +// width: 100%; +// } +// .navigation-list li { +// margin-right: 10px; +// } +// .footer__nav { +// gap: 30px; +// } +// } +// @media (max-width: 768px) { +// .title { +// font-size: 28px; +// } +// .header__title { +// font-size: 32px; +// margin-bottom: 20px; +// } +// .footer__info-text { +// font-size: 12px; +// } + +// } +// @media (max-width: 576px) { +// .button { +// padding-left: 20px; +// padding-right: 20px; +// font-size: 14px; +// } +// .form__input { +// padding-left: 10px; +// margin-right: 5px; +// } +// } +// @media (max-width: 576px) { +// .container { +// padding: 0 10px; +// } +// .nav__row { +// flex-direction: column; +// justify-content: space-between; +// gap: 20px; +// } +// .navigation-list li { +// margin-right: 30px; +// } +// .footer__info-text{ +// margin-bottom: 0px; +// font-size: 14px; +// } +// } + + + +// Адаптивність для планшетів (від 768px до 1024px) +@media screen and (max-width: 1024px) { + .container { + max-width: 100%; + padding-left: 10px; + padding-right: 10px; + } + + .nav__row { + flex-direction: column; + align-items: flex-start; + } + + .navigation-list .nav__link { + margin: 0 1rem; + } + + .header__text { + font-size: 16px; + min-width: 80%; + line-height: 1.5; + } + + .header__title { + font-size: 42px; + } + + .header__img img { + width: 100%; + border-radius: 20px; + } + + .testimonials__row { + flex-direction: column; + row-gap: 30px; + } + + .card-testimonial { + max-width: 100%; + } + + .footer__nav { + flex-direction: column; + row-gap: 30px; + } + + .footer__socials { + justify-content: space-around; + } } -@media (max-width: 1270px) { - .contacts { - &::before { - left: 27%; - } - &::after { - left: 27%; - } - } - - .testimonials__row { - &::after { - right: -10px; - top: -20px; - } - } - - .objects__text { - padding-left: 130px; - padding-right: 100px; - } - - .header__text { - margin-right: 20px; - } +// Адаптивність для мобільних пристроїв (до 768px) +@media screen and (max-width: 768px) { + .nav { + padding-top: 20px; + padding-bottom: 20px; + } + + .nav__row { + flex-direction: column; + align-items: center; + } + + .navigation-list li { + margin-right: 20px; + } + + .header__title { + font-size: 28px; + text-align: center; + } + + .header__img img { + width: 100%; + } + + .form { + height: auto; + flex-direction: column; + padding: 15px; + } + + .form__label { + padding-left: 20px; + } + + .form__input { + width: 100%; + margin-right: 0; + } + + .testimonials__heading { + flex-direction: column; + } + + .button { + width: 100%; + text-align: center; + } + + .footer { + padding-top: 40px; + padding-bottom: 40px; + } + + .footer__row { + flex-direction: column; + align-items: center; + } + + .footer__info, + .footer__nav { + text-align: center; + } + + .footer__socials { + flex-direction: row; + justify-content: center; + } } -@media (max-width: 1024px) { - .contacts { - overflow-y: hidden; - &::before { - left: 20%; - width: 80%; - background-repeat: no-repeat; - } - &::after { - left: 20%; - max-width: 69%; - background-repeat: no-repeat; - } - } - - .footer__nav { - column-gap: 50px; - } - - .cta__buttons-row { - .button { - min-width: 180px; - text-align: center; - } - } - .benefits__row { - display: flex; - flex-wrap: wrap; - row-gap: 30px; - justify-content: space-evenly; - } +// Адаптивність для дуже маленьких екранів (до 480px) +@media screen and (max-width: 480px) { + .nav__row { + flex-direction: column; + justify-content: center; + } + + .header__title { + font-size: 24px; + } + + .form { + height: auto; + padding: 10px; + } + + .form__input { + width: 100%; + font-size: 14px; + } + + .card-testimonial__name { + font-size: 16px; + } + + .footer__nav-block { + font-size: 12px; + } + + .button { + height: 50px; + line-height: 50px; + } } -@media (max-width: 930px) { - .cta__text { - padding-top: 20px; - padding-bottom: 20px; - } - - .img-card__img { - max-width: 80%; - } - - .objects__text { - padding-left: 70px; - } - - .img-card__info { - right: 50px; - } - - .card-info__text { - width: 150px; - } - - .card-info { - padding: 15px; - font-size: 12px; - width: auto; - } - - .card-info__icon img { - width: 100%; - } - - .img-card { - max-width: 350px; - } -} - -@media (max-width: 850px) { - .testimonials__row { - &::after { - background: none; - } - } - - .clients { - padding-top: 70px; - padding-bottom: 35px; - } - .clients__row { - img { - max-width: 150px; - } - } - - .footer__nav { - column-gap: 30px; - } - .serve__row { - flex-direction: column; - row-gap: 30px; - padding: 0 100px; - } -} - -@media (max-width: 832px) { - .benefits { - padding-bottom: 55px; - } - - .cta { - padding-top: 35px; - padding-bottom: 35px; - } - - .objects { - padding-bottom: 40px; - } - - .serve { - padding-bottom: 60px; - &::before { - width: 100%; - height: 100%; - - top: -25%; - left: 0; - } - } - - .navigation-list li { - margin-right: 22px; - } - - .cta__text { - padding-left: 45px; - } - - .objects__row { - justify-content: center; - } - - .objects__text { - padding: 0; - } - - .objects__img { - display: none; - } - - .testimonials__heading { - flex-direction: column; - text-align: center; - row-gap: 10px; - } - .testimonials__row { - flex-direction: column; - align-items: center; - row-gap: 30px; - } - - .benefits__row { - flex-direction: column; - justify-content: center; - align-items: center; - } -} - -@media (max-width: 700px) { - .footer__nav { - flex-wrap: wrap; - min-width: 320px; - } - - .footer__socials { - flex-direction: column; - row-gap: 20px; - margin-top: 10px; - margin-right: 10px; - } - - .footer__info-text { - display: none; - } - - .footer__logo { - display: none; - } - - .nav__none { - display: none; - } - - .cta__text { - padding-top: 10px; - padding-bottom: 10px; - } - - .cta__buttons-row .button { - min-width: unset; - } - - .button { - max-width: unset; - height: 48px; - line-height: 48px; - font-size: 12px; - padding-left: 27px; - padding-right: 27px; - - &--play { - padding-left: 50px; - &::before { - left: 28px; - top: 51%; - } - } - } - - .header__title { - font-size: 42px; - } - - .header__text { - width: 365px; - } - - .header__form .button { - height: 48px; - display: flex; - align-items: center; - font-size: 14px; - font-weight: 600; - } - - .form__label { - padding-left: 50px; - &::before { - top: 14px; - left: 15px; - } - } - - .header__form { - height: 48px; - font-size: 14px; - } - - .form__input { - width: 140px; - } - - p { - font-size: 14px; - } - - .title { - font-size: 31px; - } - - .serve__row { - flex-direction: column; - row-gap: 30px; - padding: 0 50px; - } - - .contacts { - .container { - display: flex; - justify-content: center; - } - &::before { - display: none; - } - &::after { - display: none; - } - } -} -@media (max-width: 650px) { - // .header__row { - // justify-content: center; - // text-align: center; - // } - .header__img { - display: none; - } - .contacts { - overflow-y: initial; - } - - .clients { - padding-top: 70px; - padding-bottom: 35px; - } - .clients__row { - img { - max-width: 100px; - } - } -} -@media (max-width: 630px) { - .cta__img { - display: none; - } -} - -@media (max-width: 530px) { - .card-customer { - padding: 40px 44px; - } - - .header__title { - max-width: 320px; - font-size: 35px; - } -} - -@media (max-width: 450px) { - .testimonials { - padding-bottom: 0; - } - - .cta__text { - width: 375px; - padding-right: 0; - padding-left: 25px; - } - - .clients { - display: none; - } -} diff --git a/sass/blocks/_header.scss b/sass/blocks/_header.scss index ad2ccd5d..5bcb904f 100755 --- a/sass/blocks/_header.scss +++ b/sass/blocks/_header.scss @@ -1,4 +1,5 @@ .header { + } .header__row {