123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674 |
- *, :before, :after {
- box-sizing: border-box;
- }
- body {
- margin: 0;
- font-family: 'Montserrat', regular;
- background: #e7e9eb;
- font-size: 18px;
- font-weight: 400;
- line-height: 1.77;
- color: #221818;
- }
- img {
- max-width: 100%;
- height: auto;
- }
- strong {
- font-weight: bold;
- }
- h1 {
- font-family: 'Courgette', cursive;
- font-size: 46px;
- font-weight: 400;
- line-height: 1.13;
- margin-bottom: 20px;
- }
- h2 {
- display: block;
- margin: 20px 0;
- font-size: 24px;
- font-weight: bold;
- text-align: center;
- }
- h3 {
- display: block;
- font-size: 18px;
- line-height: 1.5;
- font-weight: 700;
- margin-bottom: 10px;
- text-transform: uppercase;
- color: #fd1c18;
- }
- .wrapper {
- /*класс для того, что бы
- центральная часть занимала всю высоту страницы
- кроме header и footer,и footer был бы снизу зафиксирован*/
- display: flex;
- /*элементы принимают
- значение flex элементов, и выстраиваются вряд
- (положение элементов row по умолчанию)*/
- flex-direction: column;
- /*меняем положение элементов
- с row по умолчанию на colum, элементы выстраиваются
- в столбец*/
- min-height: 100vh;
- /*vieport height
- размер .wrapper = размеру экрана(страницы)*/
- /*max-width: auto;*/
- /*максю ширина хэдэра*/
- margin: 0 auto;
- /*центрируем*/
- /*возвращаем ширину после применения
- display: flex к .wrapper(родительскому контейнеру)*/
- }
- .header {
- display: flex;
- flex-wrap: wrap;
- background: url(../images/bg-header.jpg);
- align-items: center;
- }
- .header-top {
- display: flex;
- /*ставит элементы вряд*/
- justify-content: space-between;
- /*раскидывает по краям*/
- background: url(../images/bg-header.jpg);
- align-items: center;
- /*выравниваем элементы по центру*/
- padding: 15px 15px;
- /*для того что бы элементы
- не прилипали к роодителю*/
- top: 0;
- left: 0;
- right: 0;
- /*top:0; left:0; right:0 так мы растягиваем header
- по всей ширине экрана*/
- position: fixed;
- z-index: 4;
- /* position: relative; */
- }
- .header-logo {
- width: 80px;
- /*задаем ширину */
- /* margin-left: 46%;*/
- margin: 0 auto;
- }
- .header-bottom {
- width: 100%;
- }
- .story {
- max-width: 100%;
- background: url(../images/bg-wood.jpg);
- margin-top: 103.06px;
- padding: 70px 0;
- text-align: center;
- position: relative;
- }
- .story:after {
- content: '';
- position: absolute;
- top: 0;
- bottom: 0;
- right: 0;
- left: 0;
- background: rgba(0, 0, 0, .4);
- z-index: 2;
- }
- .text-story {
- position: relative;
- color: #fff;
- z-index: 3;
- max-width: 600px;
- margin: 0 auto;
- }
- .main {
- display: flex;
- flex-wrap: wrap;
- flex-grow: 1;
- /*занимает всю высоту родителя(.wrapper)
- кроме header и footer */
- background: url(../images/bg-texture.png);
- }
- /* скрываем чекбокс */
- #menu__toggle {
- opacity: 0;
- }
- /* стилизуем кнопку */
- .menu__btn {
- display: flex;
- /* используем flex для центрирования содержимого */
- align-items: center;
- /* центрируем содержимое кнопки */
- /* position: fixed; */
- top: 50%;
- right: 40px;
- transform: translateY(-50%);
- width: 26px;
- height: 26px;
- cursor: pointer;
- z-index: 1;
- position: absolute;
- }
- /* добавляем "гамбургер" */
- .menu__btn>span, .menu__btn>span::before, .menu__btn>span::after {
- display: block;
- position: absolute;
- width: 100%;
- height: 2px;
- background-color: #616161;
- }
- .menu__btn>span::before {
- content: '';
- top: -8px;
- }
- .menu__btn>span::after {
- content: '';
- top: 8px;
- }
- .menu__btn>span, .menu__btn>span::before, .menu__btn>span::after {
- transition-duration: .25s;
- }
- .menu__box {
- transition-duration: .25s;
- }
- .menu__item {
- transition-duration: .25s;
- }
- /* контейнер меню */
- .menu__box {
- display: block;
- position: fixed;
- visibility: hidden;
- top: 0;
- right: -100%;
- width: 300px;
- height: 100%;
- margin: 0;
- padding: 80px 0;
- list-style: none;
- text-align: center;
- background-color: #ECEFF1;
- box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
- }
- /* элементы меню */
- .menu__item {
- display: block;
- padding: 12px 24px;
- color: #333;
- font-family: 'Roboto', sans-serif;
- font-size: 20px;
- font-weight: 600;
- text-decoration: none;
- }
- .menu__item:hover {
- background-color: #CFD8DC;
- }
- #menu__toggle:checked~.menu__btn>span {
- transform: rotate(45deg);
- }
- #menu__toggle:checked~.menu__btn>span::before {
- top: 0;
- transform: rotate(0);
- }
- #menu__toggle:checked~.menu__btn>span::after {
- top: 0;
- transform: rotate(90deg);
- }
- #menu__toggle:checked~.menu__box {
- visibility: visible;
- right: 0;
- }
- .content {
- width: 1100px;
- /* background: url(../images/bg-texture.png); */
- padding: 80px 80px 30px;
- margin: 0 auto;
- }
- .description {
- display: flex;
- text-align: justify;
- /* margin: 40px 0; */
- /* justify-content: space-between; */
- justify-content: center;
- align-items: center;
- }
- .img-food {
- max-width: 400px;
- margin-right: 5%;
- }
- .img-jaguar {
- max-width: 400px;
- margin-top: 70px;
- order: 2;
- margin-left: 5%;
- }
- .text-food {
- max-width: 400px;
- margin-left: 5%;
- }
- .text-beer {
- max-width: 400px;
- margin-top: 70px;
- order: 1;
- margin-right: 5%;
- }
- .btn {
- width: 200px;
- /* padding: 0 auto; */
- border: 1px solid black;
- text-transform: uppercase;
- font-family: 'Montserrat', regular;
- font-size: 18px;
- font-weight: 700;
- line-height: 1.77;
- margin-top: 20px;
- transition: 0.5s ease;
- }
- .btn:hover {
- /* color: #fd1c18; */
- transform: scale(1.1);
- /* background: rgba(68, 128, 122, 0.8); */
- background: rgba(92, 81, 81, 0.6);
- border: 1px solid blue;
- }
- form {
- margin: 0;
- }
- .client-form {
- display: flex;
- flex-direction: column;
- max-width: 500px;
- position: relative;
- flex-wrap: wrap;
- text-align: center;
- margin: 20px auto;
- align-items: center;
- }
- .id-card input {
- width:100%;
- max-width: 400px;
- border: 1px solid#9c9c9c;
- border-radius: 10px;
- font-family: 'Montserrat', regular;
- font-size: 15px;
- margin-bottom: 15px;
- line-height: 1.77;
- padding-left: 10px;
- }
- .id-card textarea {
- width: 100%;
- max-height: 200px;
- max-width: 400px;
- border: 1px solid#9c9c9c;
- border-radius: 10px;
- font-family: 'Montserrat', regular;
- font-size: 15px;
- line-height: 1.77;
- padding-left: 10px;
- }
- .footer {
- display: flex;
- justify-content: space-between;
- border-top: 1px solid#65abab;
- padding: 15px;
- text-align: center;
- align-items: center;
- }
- .footer-logo {
- max-width: 100px;
- }
- .social-networks>li, a {
- list-style: none;
- text-decoration: none;
- }
- .social-networks {
- display: flex;
- padding: 0;
- list-style: none;
- text-decoration: none;
- }
- .social-networks a {
- display: flex;
- width: 30px;
- height: 30px;
- border-radius: 50%;
- background: #364141;
- color: white;
- justify-content: center;
- align-items: center;
- transform: scale(1.2);
- transition: 0.2s ease;
- margin: 0 10px;
- }
- .social-networks a:hover {
- background: white;
- color: #364141;
- border: 1px solid black;
- }
- .btn-footer {
- width: auto;
- border: 2px solid #fd1c18;
- text-transform: uppercase;
- font-family: 'Montserrat', regular;
- font-size: 18px;
- font-weight: 700;
- padding: 1px 15px;
- margin-top: 10px;
- transition: 0.5s ease;
- }
- .btn-footer:hover {
- transform: scale(1.1);
- background: rgba(92, 81, 81, 0.6);
- }
- @media(max-width: 1099px) {
- .img-food {
- margin-right: 3%;
- }
- .img-jaguar {
- margin-left: 3%;
- }
- .text-food {
- margin-left: 3%;
- }
- .text-beer {
- margin-right: 3%;
- }
- .content {
- padding: 50px 50px 10px;
- }
- }
- @media(max-width: 950px) {
- .content {
- padding: 30px 30px 10px;
- }
- .img-food {
- margin-right: 2%;
- }
- .img-jaguar {
- margin-left: 2%;
- }
- .text-food {
- margin-left: 2%;
- }
- .text-beer {
- margin-right: 2%;
- }
- .client-form {
- max-width: 400px;
- }
- .id-card input {
- max-width: 400px;
- }
- }
- @media(max-width: 900px) {
- .description {
- display: flex;
- flex-direction: column;
- flex-wrap: wrap;
- align-content: center;
- }
- .img-food {
- max-width: 600px;
- margin-right: 0;
- }
- .img-jaguar {
- max-width: 600px;
- margin-left: 0;
- margin-top: 40px;
- }
- .text-food {
- max-width: 600px;
- margin-left: 0;
- margin-top: 20px;
- }
- .text-beer {
- max-width: 600px;
- margin-right: 0;
- margin-bottom: -20px;
- }
- .header-logo {
- width: 60px;
- /*задаем ширину */
- margin: 0 auto;
- }
- .story {
- margin-top: 84.3px;
- }
- }
- @media(max-width: 660px) {
- .header-logo {
- margin: 0;
- }
- .story {
- padding: 40px 0;
- }
- .img-food {
- max-width: 500px;
- }
- .img-jaguar {
- max-width: 500px;
- margin-top: 40px;
- }
- .text-food {
- max-width: 500px;
- margin-top: 20px;
- }
- .text-beer {
- max-width: 500px;
- margin-bottom: -20px;
- }
- .client-form {
- max-width: 400px;
- }
- .id-card input {
- max-width: 400px;
- }
- .id-card textarea {
- max-height: 200px;
- max-width: 400px;
- }
- .footer-logo {
- max-width: 80px;
- }
- body {
- font-size: 16px;
- font-weight: 400;
- line-height: 1.5;
- color: #221818;
- }
- .text-story {
- max-width: 400px;
- }
- .social-networks a {
- width: 25px;
- height: 25px;
- margin: 0 5px;
- }
- }
- @media(max-width: 500px) {
- .content {
- padding: 30px 20px 10px;
- }
- h1 {
- font-size: 40px;
- font-weight: 600;
- line-height: 1.1;
- margin-bottom: 15px;
- }
- h3 {
- display: block;
- font-size: 16px;
- line-height: 1.5;
- font-weight: 600;
- }
- .story {
- padding: 20px 0;
- }
- .footer-logo {
- max-width: 70px;
- }
- body {
- font-size: 14px;
- font-weight: 500;
- line-height: 1.5;
- color: #221818;
- }
- }
- @media(max-width: 410px) {
- .social-networks {
- flex-direction: column;
- }
- .social-networks a {
- margin: 5px 0;
- }
- .content {
- padding: 30px 10px 10px;
- }
- h1 {
- font-size: 35px;
- font-weight: 700;
- line-height: 1.1;
- margin-bottom: 15px;
- }
- h3 {
- display: block;
- font-size: 16px;
- line-height: 1.5;
- font-weight: 700;
- }
- .story {
- padding: 10px 0;
- }
- .text-story {
- max-width: 350px;
- }
- .img-food {
- max-width: 350px;
- }
- .img-jaguar {
- max-width: 350px;
- }
- .text-food {
- max-width: 350px;
- margin-top: 20px;
- }
- .text-beer {
- max-width: 350px;
- margin-bottom: -10px;
- }
- .text-food {
- margin-top: 5px;
- }
- .text-beer {
- margin-top: 40px;
- margin-bottom: -10px;
- }
- .client-form {
- max-width: 350px;
- }
- .id-card input {
- max-width: 350px;
- }
- .id-card textarea {
- max-height: 200px;
- max-width: 350px;
- }
- .footer-logo {
- max-width: 70px;
- }
- body {
- font-size: 14px;
- font-weight: 600;
- line-height: 1.5;
- color: #221818;
- }
- .footer {
- padding: 10px;
- }
- }
- @media(max-width: 400px) {
- .story {
- padding: 10px 0;
- }
- .social-networks {
- flex-direction: column;
- }
- .social-networks a {
- margin: 5px 0;
- }
- .content {
- padding: 30px 10px 10px;
- }
- h1 {
- font-size: 30px;
- font-weight: 700;
- line-height: 1.1;
- margin-bottom: 15px;
- }
- h3 {
- display: block;
- font-size: 16px;
- line-height: 1.5;
- font-weight: 700;
- }
- .story {
- padding: 10px 0;
- }
- .text-story {
- max-width: 300px;
- }
- .img-food {
- max-width: 300px;
- }
- .img-jaguar {
- max-width: 300px;
- }
- .text-food {
- max-width: 300px;
- margin-top: 20px;
- }
- .text-beer {
- max-width: 300px;
- margin-bottom: -10px;
- }
- .footer-logo {
- max-width: 70px;
- }
- body {
- font-size: 14px;
- font-weight: 600;
- line-height: 1.5;
- color: #221818;
- }
- .text-food {
- margin-top: 5px;
- }
- .text-beer {
- margin-top: 40px;
- margin-bottom: -10px;
- }
- .client-form {
- max-width: 300px;
- }
- .id-card input {
- max-width: 300px;
- /* width:100%; */
- }
- .id-card textarea {
- max-height: 200px;
- max-width: 300px;
- }
- .footer {
- padding: 10px;
- justify-content: space-between;
- }
- .btn-footer {
- font-size: 14px;
- padding: 1px 10px;
- margin-top: 10px;
- }
- }
|