main.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. *, :before, :after {
  2. box-sizing: border-box;
  3. }
  4. body {
  5. margin: 0;
  6. font-family: 'Montserrat', regular;
  7. background: #e7e9eb;
  8. font-size: 18px;
  9. font-weight: 400;
  10. line-height: 1.77;
  11. color: #221818;
  12. }
  13. img {
  14. max-width: 100%;
  15. height: auto;
  16. }
  17. strong {
  18. font-weight: bold;
  19. }
  20. h1 {
  21. font-family: 'Courgette', cursive;
  22. font-size: 46px;
  23. font-weight: 400;
  24. line-height: 1.13;
  25. margin-bottom: 20px;
  26. }
  27. h2 {
  28. display: block;
  29. margin: 20px 0;
  30. font-size: 24px;
  31. font-weight: bold;
  32. text-align: center;
  33. }
  34. h3 {
  35. display: block;
  36. font-size: 18px;
  37. line-height: 1.5;
  38. font-weight: 700;
  39. margin-bottom: 10px;
  40. text-transform: uppercase;
  41. color: #fd1c18;
  42. }
  43. .wrapper {
  44. /*класс для того, что бы
  45. центральная часть занимала всю высоту страницы
  46. кроме header и footer,и footer был бы снизу зафиксирован*/
  47. display: flex;
  48. /*элементы принимают
  49. значение flex элементов, и выстраиваются вряд
  50. (положение элементов row по умолчанию)*/
  51. flex-direction: column;
  52. /*меняем положение элементов
  53. с row по умолчанию на colum, элементы выстраиваются
  54. в столбец*/
  55. min-height: 100vh;
  56. /*vieport height
  57. размер .wrapper = размеру экрана(страницы)*/
  58. /*max-width: auto;*/
  59. /*максю ширина хэдэра*/
  60. margin: 0 auto;
  61. /*центрируем*/
  62. /*возвращаем ширину после применения
  63. display: flex к .wrapper(родительскому контейнеру)*/
  64. }
  65. .header {
  66. display: flex;
  67. flex-wrap: wrap;
  68. background: url(../images/bg-header.jpg);
  69. align-items: center;
  70. }
  71. .header-top {
  72. display: flex;
  73. /*ставит элементы вряд*/
  74. justify-content: space-between;
  75. /*раскидывает по краям*/
  76. background: url(../images/bg-header.jpg);
  77. align-items: center;
  78. /*выравниваем элементы по центру*/
  79. padding: 15px 15px;
  80. /*для того что бы элементы
  81. не прилипали к роодителю*/
  82. top: 0;
  83. left: 0;
  84. right: 0;
  85. /*top:0; left:0; right:0 так мы растягиваем header
  86. по всей ширине экрана*/
  87. position: fixed;
  88. z-index: 4;
  89. /* position: relative; */
  90. }
  91. .header-logo {
  92. width: 80px;
  93. /*задаем ширину */
  94. /* margin-left: 46%;*/
  95. margin: 0 auto;
  96. }
  97. .header-bottom {
  98. width: 100%;
  99. }
  100. .story {
  101. max-width: 100%;
  102. background: url(../images/bg-wood.jpg);
  103. margin-top: 103.06px;
  104. padding: 70px 0;
  105. text-align: center;
  106. position: relative;
  107. }
  108. .story:after {
  109. content: '';
  110. position: absolute;
  111. top: 0;
  112. bottom: 0;
  113. right: 0;
  114. left: 0;
  115. background: rgba(0, 0, 0, .4);
  116. z-index: 2;
  117. }
  118. .text-story {
  119. position: relative;
  120. color: #fff;
  121. z-index: 3;
  122. max-width: 600px;
  123. margin: 0 auto;
  124. }
  125. .main {
  126. display: flex;
  127. flex-wrap: wrap;
  128. flex-grow: 1;
  129. /*занимает всю высоту родителя(.wrapper)
  130. кроме header и footer */
  131. background: url(../images/bg-texture.png);
  132. }
  133. /* скрываем чекбокс */
  134. #menu__toggle {
  135. opacity: 0;
  136. }
  137. /* стилизуем кнопку */
  138. .menu__btn {
  139. display: flex;
  140. /* используем flex для центрирования содержимого */
  141. align-items: center;
  142. /* центрируем содержимое кнопки */
  143. /* position: fixed; */
  144. top: 50%;
  145. right: 40px;
  146. transform: translateY(-50%);
  147. width: 26px;
  148. height: 26px;
  149. cursor: pointer;
  150. z-index: 1;
  151. position: absolute;
  152. }
  153. /* добавляем "гамбургер" */
  154. .menu__btn>span, .menu__btn>span::before, .menu__btn>span::after {
  155. display: block;
  156. position: absolute;
  157. width: 100%;
  158. height: 2px;
  159. background-color: #616161;
  160. }
  161. .menu__btn>span::before {
  162. content: '';
  163. top: -8px;
  164. }
  165. .menu__btn>span::after {
  166. content: '';
  167. top: 8px;
  168. }
  169. .menu__btn>span, .menu__btn>span::before, .menu__btn>span::after {
  170. transition-duration: .25s;
  171. }
  172. .menu__box {
  173. transition-duration: .25s;
  174. }
  175. .menu__item {
  176. transition-duration: .25s;
  177. }
  178. /* контейнер меню */
  179. .menu__box {
  180. display: block;
  181. position: fixed;
  182. visibility: hidden;
  183. top: 0;
  184. right: -100%;
  185. width: 300px;
  186. height: 100%;
  187. margin: 0;
  188. padding: 80px 0;
  189. list-style: none;
  190. text-align: center;
  191. background-color: #ECEFF1;
  192. box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
  193. }
  194. /* элементы меню */
  195. .menu__item {
  196. display: block;
  197. padding: 12px 24px;
  198. color: #333;
  199. font-family: 'Roboto', sans-serif;
  200. font-size: 20px;
  201. font-weight: 600;
  202. text-decoration: none;
  203. }
  204. .menu__item:hover {
  205. background-color: #CFD8DC;
  206. }
  207. #menu__toggle:checked~.menu__btn>span {
  208. transform: rotate(45deg);
  209. }
  210. #menu__toggle:checked~.menu__btn>span::before {
  211. top: 0;
  212. transform: rotate(0);
  213. }
  214. #menu__toggle:checked~.menu__btn>span::after {
  215. top: 0;
  216. transform: rotate(90deg);
  217. }
  218. #menu__toggle:checked~.menu__box {
  219. visibility: visible;
  220. right: 0;
  221. }
  222. .content {
  223. width: 1100px;
  224. /* background: url(../images/bg-texture.png); */
  225. padding: 80px 80px 30px;
  226. margin: 0 auto;
  227. }
  228. .description {
  229. display: flex;
  230. text-align: justify;
  231. /* margin: 40px 0; */
  232. /* justify-content: space-between; */
  233. justify-content: center;
  234. align-items: center;
  235. }
  236. .img-food {
  237. max-width: 400px;
  238. margin-right: 5%;
  239. }
  240. .img-jaguar {
  241. max-width: 400px;
  242. margin-top: 70px;
  243. order: 2;
  244. margin-left: 5%;
  245. }
  246. .text-food {
  247. max-width: 400px;
  248. margin-left: 5%;
  249. }
  250. .text-beer {
  251. max-width: 400px;
  252. margin-top: 70px;
  253. order: 1;
  254. margin-right: 5%;
  255. }
  256. .btn {
  257. width: 200px;
  258. /* padding: 0 auto; */
  259. border: 1px solid black;
  260. text-transform: uppercase;
  261. font-family: 'Montserrat', regular;
  262. font-size: 18px;
  263. font-weight: 700;
  264. line-height: 1.77;
  265. margin-top: 20px;
  266. transition: 0.5s ease;
  267. }
  268. .btn:hover {
  269. /* color: #fd1c18; */
  270. transform: scale(1.1);
  271. /* background: rgba(68, 128, 122, 0.8); */
  272. background: rgba(92, 81, 81, 0.6);
  273. border: 1px solid blue;
  274. }
  275. form {
  276. margin: 0;
  277. }
  278. .client-form {
  279. display: flex;
  280. flex-direction: column;
  281. max-width: 500px;
  282. position: relative;
  283. flex-wrap: wrap;
  284. text-align: center;
  285. margin: 20px auto;
  286. align-items: center;
  287. }
  288. .id-card input {
  289. width:100%;
  290. max-width: 400px;
  291. border: 1px solid#9c9c9c;
  292. border-radius: 10px;
  293. font-family: 'Montserrat', regular;
  294. font-size: 15px;
  295. margin-bottom: 15px;
  296. line-height: 1.77;
  297. padding-left: 10px;
  298. }
  299. .id-card textarea {
  300. width: 100%;
  301. max-height: 200px;
  302. max-width: 400px;
  303. border: 1px solid#9c9c9c;
  304. border-radius: 10px;
  305. font-family: 'Montserrat', regular;
  306. font-size: 15px;
  307. line-height: 1.77;
  308. padding-left: 10px;
  309. }
  310. .footer {
  311. display: flex;
  312. justify-content: space-between;
  313. border-top: 1px solid#65abab;
  314. padding: 15px;
  315. text-align: center;
  316. align-items: center;
  317. }
  318. .footer-logo {
  319. max-width: 100px;
  320. }
  321. .social-networks>li, a {
  322. list-style: none;
  323. text-decoration: none;
  324. }
  325. .social-networks {
  326. display: flex;
  327. padding: 0;
  328. list-style: none;
  329. text-decoration: none;
  330. }
  331. .social-networks a {
  332. display: flex;
  333. width: 30px;
  334. height: 30px;
  335. border-radius: 50%;
  336. background: #364141;
  337. color: white;
  338. justify-content: center;
  339. align-items: center;
  340. transform: scale(1.2);
  341. transition: 0.2s ease;
  342. margin: 0 10px;
  343. }
  344. .social-networks a:hover {
  345. background: white;
  346. color: #364141;
  347. border: 1px solid black;
  348. }
  349. .btn-footer {
  350. width: auto;
  351. border: 2px solid #fd1c18;
  352. text-transform: uppercase;
  353. font-family: 'Montserrat', regular;
  354. font-size: 18px;
  355. font-weight: 700;
  356. padding: 1px 15px;
  357. margin-top: 10px;
  358. transition: 0.5s ease;
  359. }
  360. .btn-footer:hover {
  361. transform: scale(1.1);
  362. background: rgba(92, 81, 81, 0.6);
  363. }
  364. @media(max-width: 1099px) {
  365. .img-food {
  366. margin-right: 3%;
  367. }
  368. .img-jaguar {
  369. margin-left: 3%;
  370. }
  371. .text-food {
  372. margin-left: 3%;
  373. }
  374. .text-beer {
  375. margin-right: 3%;
  376. }
  377. .content {
  378. padding: 50px 50px 10px;
  379. }
  380. }
  381. @media(max-width: 950px) {
  382. .content {
  383. padding: 30px 30px 10px;
  384. }
  385. .img-food {
  386. margin-right: 2%;
  387. }
  388. .img-jaguar {
  389. margin-left: 2%;
  390. }
  391. .text-food {
  392. margin-left: 2%;
  393. }
  394. .text-beer {
  395. margin-right: 2%;
  396. }
  397. .client-form {
  398. max-width: 400px;
  399. }
  400. .id-card input {
  401. max-width: 400px;
  402. }
  403. }
  404. @media(max-width: 900px) {
  405. .description {
  406. display: flex;
  407. flex-direction: column;
  408. flex-wrap: wrap;
  409. align-content: center;
  410. }
  411. .img-food {
  412. max-width: 600px;
  413. margin-right: 0;
  414. }
  415. .img-jaguar {
  416. max-width: 600px;
  417. margin-left: 0;
  418. margin-top: 40px;
  419. }
  420. .text-food {
  421. max-width: 600px;
  422. margin-left: 0;
  423. margin-top: 20px;
  424. }
  425. .text-beer {
  426. max-width: 600px;
  427. margin-right: 0;
  428. margin-bottom: -20px;
  429. }
  430. .header-logo {
  431. width: 60px;
  432. /*задаем ширину */
  433. margin: 0 auto;
  434. }
  435. .story {
  436. margin-top: 84.3px;
  437. }
  438. }
  439. @media(max-width: 660px) {
  440. .header-logo {
  441. margin: 0;
  442. }
  443. .story {
  444. padding: 40px 0;
  445. }
  446. .img-food {
  447. max-width: 500px;
  448. }
  449. .img-jaguar {
  450. max-width: 500px;
  451. margin-top: 40px;
  452. }
  453. .text-food {
  454. max-width: 500px;
  455. margin-top: 20px;
  456. }
  457. .text-beer {
  458. max-width: 500px;
  459. margin-bottom: -20px;
  460. }
  461. .client-form {
  462. max-width: 400px;
  463. }
  464. .id-card input {
  465. max-width: 400px;
  466. }
  467. .id-card textarea {
  468. max-height: 200px;
  469. max-width: 400px;
  470. }
  471. .footer-logo {
  472. max-width: 80px;
  473. }
  474. body {
  475. font-size: 16px;
  476. font-weight: 400;
  477. line-height: 1.5;
  478. color: #221818;
  479. }
  480. .text-story {
  481. max-width: 400px;
  482. }
  483. .social-networks a {
  484. width: 25px;
  485. height: 25px;
  486. margin: 0 5px;
  487. }
  488. }
  489. @media(max-width: 500px) {
  490. .content {
  491. padding: 30px 20px 10px;
  492. }
  493. h1 {
  494. font-size: 40px;
  495. font-weight: 600;
  496. line-height: 1.1;
  497. margin-bottom: 15px;
  498. }
  499. h3 {
  500. display: block;
  501. font-size: 16px;
  502. line-height: 1.5;
  503. font-weight: 600;
  504. }
  505. .story {
  506. padding: 20px 0;
  507. }
  508. .footer-logo {
  509. max-width: 70px;
  510. }
  511. body {
  512. font-size: 14px;
  513. font-weight: 500;
  514. line-height: 1.5;
  515. color: #221818;
  516. }
  517. }
  518. @media(max-width: 410px) {
  519. .social-networks {
  520. flex-direction: column;
  521. }
  522. .social-networks a {
  523. margin: 5px 0;
  524. }
  525. .content {
  526. padding: 30px 10px 10px;
  527. }
  528. h1 {
  529. font-size: 35px;
  530. font-weight: 700;
  531. line-height: 1.1;
  532. margin-bottom: 15px;
  533. }
  534. h3 {
  535. display: block;
  536. font-size: 16px;
  537. line-height: 1.5;
  538. font-weight: 700;
  539. }
  540. .story {
  541. padding: 10px 0;
  542. }
  543. .text-story {
  544. max-width: 350px;
  545. }
  546. .img-food {
  547. max-width: 350px;
  548. }
  549. .img-jaguar {
  550. max-width: 350px;
  551. }
  552. .text-food {
  553. max-width: 350px;
  554. margin-top: 20px;
  555. }
  556. .text-beer {
  557. max-width: 350px;
  558. margin-bottom: -10px;
  559. }
  560. .text-food {
  561. margin-top: 5px;
  562. }
  563. .text-beer {
  564. margin-top: 40px;
  565. margin-bottom: -10px;
  566. }
  567. .client-form {
  568. max-width: 350px;
  569. }
  570. .id-card input {
  571. max-width: 350px;
  572. }
  573. .id-card textarea {
  574. max-height: 200px;
  575. max-width: 350px;
  576. }
  577. .footer-logo {
  578. max-width: 70px;
  579. }
  580. body {
  581. font-size: 14px;
  582. font-weight: 600;
  583. line-height: 1.5;
  584. color: #221818;
  585. }
  586. .footer {
  587. padding: 10px;
  588. }
  589. }
  590. @media(max-width: 400px) {
  591. .story {
  592. padding: 10px 0;
  593. }
  594. .social-networks {
  595. flex-direction: column;
  596. }
  597. .social-networks a {
  598. margin: 5px 0;
  599. }
  600. .content {
  601. padding: 30px 10px 10px;
  602. }
  603. h1 {
  604. font-size: 30px;
  605. font-weight: 700;
  606. line-height: 1.1;
  607. margin-bottom: 15px;
  608. }
  609. h3 {
  610. display: block;
  611. font-size: 16px;
  612. line-height: 1.5;
  613. font-weight: 700;
  614. }
  615. .story {
  616. padding: 10px 0;
  617. }
  618. .text-story {
  619. max-width: 300px;
  620. }
  621. .img-food {
  622. max-width: 300px;
  623. }
  624. .img-jaguar {
  625. max-width: 300px;
  626. }
  627. .text-food {
  628. max-width: 300px;
  629. margin-top: 20px;
  630. }
  631. .text-beer {
  632. max-width: 300px;
  633. margin-bottom: -10px;
  634. }
  635. .footer-logo {
  636. max-width: 70px;
  637. }
  638. body {
  639. font-size: 14px;
  640. font-weight: 600;
  641. line-height: 1.5;
  642. color: #221818;
  643. }
  644. .text-food {
  645. margin-top: 5px;
  646. }
  647. .text-beer {
  648. margin-top: 40px;
  649. margin-bottom: -10px;
  650. }
  651. .client-form {
  652. max-width: 300px;
  653. }
  654. .id-card input {
  655. max-width: 300px;
  656. /* width:100%; */
  657. }
  658. .id-card textarea {
  659. max-height: 200px;
  660. max-width: 300px;
  661. }
  662. .footer {
  663. padding: 10px;
  664. justify-content: space-between;
  665. }
  666. .btn-footer {
  667. font-size: 14px;
  668. padding: 1px 10px;
  669. margin-top: 10px;
  670. }
  671. }