main.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. * {
  2. box-sizing: border-box;
  3. }
  4. body {
  5. margin: 0;
  6. background-color: #f4f4f4;
  7. font-family: 'Roboto', sans-serif;
  8. }
  9. img {
  10. display: block;
  11. }
  12. .container {
  13. max-width: 1200px;
  14. margin: 0 auto;
  15. padding: 60px 15px;
  16. }
  17. @media (max-width: 1200px) {
  18. .container {
  19. max-width: 830px;
  20. }
  21. }
  22. @media (max-width: 829px) {
  23. .container {
  24. max-width: 600px;
  25. }
  26. }
  27. .row {
  28. display: flex;
  29. justify-content: space-between;
  30. }
  31. .main {
  32. width: 870px;
  33. }
  34. .sidebar {
  35. min-width: 200px;
  36. width: 270px;
  37. }
  38. @media (max-width: 829px) {
  39. .sidebar {
  40. /* display: none; */
  41. margin-left: 0 !important;
  42. position: fixed;
  43. top: 0;
  44. bottom: 0;
  45. left: 0;
  46. background-color: white;
  47. padding: 15px;
  48. box-shadow: 0px 0px 20px 4px rgb(0 0 0 / 37%);
  49. overflow-y: scroll;
  50. transform: translateX(-150%);
  51. transition: transform 0.3s ease-in;
  52. }
  53. .sidebar--mobile-active {
  54. transform: translateX(-0%);
  55. }
  56. }
  57. .main + .sidebar {
  58. margin-left: 30px;
  59. }
  60. .cards-holder {
  61. display: flex;
  62. flex-wrap: wrap;
  63. justify-content: space-between;
  64. }
  65. @media (max-width: 599px) {
  66. .cards-holder {
  67. flex-direction: column;
  68. align-items: center;
  69. }
  70. }
  71. .cards-holder > .card-link {
  72. margin-bottom: 30px;
  73. }
  74. .card-link--hidden {
  75. display: none !important;
  76. }
  77. /* Card */
  78. a.card-link {
  79. display: inline-block;
  80. text-decoration: none;
  81. transition: all 0.2s ease-in;
  82. }
  83. a.card-link:hover {
  84. opacity: 0.9;
  85. transform: translateY(-5px);
  86. }
  87. .card {
  88. position: relative;
  89. width: 270px;
  90. background-color: #fff;
  91. }
  92. .card__badges {
  93. position: absolute;
  94. top: 10px;
  95. left: 15px;
  96. right: 15px;
  97. display: flex;
  98. }
  99. .card__badges > * + * {
  100. margin-left: 10px;
  101. }
  102. .card__badge {
  103. display: inline-block;
  104. height: 22px;
  105. padding: 0 10px;
  106. background: #a3a3a3;
  107. border-radius: 4px;
  108. font-size: 14px;
  109. line-height: 23px;
  110. color: #000000;
  111. }
  112. .card__badge--class {
  113. background: #ffcf26;
  114. }
  115. .card__badge--credit {
  116. background: #11be75;
  117. color: #fff;
  118. }
  119. .card__content {
  120. padding: 16px 15px 20px;
  121. }
  122. .card__title {
  123. margin: 0;
  124. margin-bottom: 11px;
  125. font-weight: bold;
  126. font-size: 18px;
  127. line-height: 1.16;
  128. color: #000000;
  129. }
  130. .card__term {
  131. margin-bottom: 11px;
  132. font-size: 14px;
  133. line-height: 1.14;
  134. color: #000000;
  135. }
  136. .card__metro {
  137. margin-bottom: 11px;
  138. font-size: 14px;
  139. line-height: 1.14;
  140. color: #000000;
  141. }
  142. .card__metro::before {
  143. content: '';
  144. margin-right: 10px;
  145. display: inline-block;
  146. vertical-align: baseline;
  147. width: 16px;
  148. height: 11px;
  149. background-image: url('./../img/icons/metro.svg');
  150. background-repeat: no-repeat;
  151. background-size: initial;
  152. }
  153. .card__address {
  154. font-size: 14px;
  155. line-height: 1.14;
  156. color: #777777;
  157. }
  158. /* Button more */
  159. .btn-more {
  160. display: flex;
  161. align-items: center;
  162. justify-content: center;
  163. width: 100%;
  164. height: 80px;
  165. background-color: #e5e5e5;
  166. border-radius: 4px;
  167. border: none;
  168. text-align: center;
  169. font-size: 18px;
  170. line-height: 21px;
  171. color: #4290c9;
  172. cursor: pointer;
  173. transition: background-color 0.2s ease-in;
  174. }
  175. .btn-more:hover {
  176. background-color: #d8d8d8;
  177. }
  178. .btn-more img {
  179. /* display: inline-block; */
  180. margin-right: 10px;
  181. /* vertical-align: bottom; */
  182. }
  183. /* Sidebar */
  184. .widget + .widget {
  185. margin-top: 33px;
  186. }
  187. .widget--top-30 {
  188. margin-top: 30px !important;
  189. }
  190. .widget__title {
  191. position: relative;
  192. margin-bottom: 21px;
  193. font-weight: bold;
  194. font-size: 18px;
  195. line-height: 1.16;
  196. color: #000000;
  197. cursor: pointer;
  198. }
  199. .widget__title::after {
  200. content: '';
  201. width: 20px;
  202. height: 20px;
  203. position: absolute;
  204. right: 1px;
  205. top: -1px;
  206. background-image: url('./../img/icons/chevron-up.svg');
  207. background-repeat: no-repeat;
  208. background-size: initial;
  209. background-position: center;
  210. }
  211. .widget__title--active::after {
  212. transform: rotate(180deg);
  213. }
  214. .widget__body {
  215. }
  216. .widget__body--hidden {
  217. display: none;
  218. }
  219. /* Location buttons group */
  220. .location {
  221. }
  222. .location__row {
  223. display: flex;
  224. }
  225. .location__row:first-child {
  226. overflow: hidden;
  227. border-radius: 4px 4px 0 0;
  228. border: 1px solid #d6d6d6;
  229. }
  230. .location__row:last-child {
  231. overflow: hidden;
  232. border-radius: 0px 0px 4px 4px;
  233. border: 1px solid #d6d6d6;
  234. border-top: none;
  235. }
  236. .location__btn {
  237. flex-grow: 1;
  238. font-family: inherit;
  239. height: 48px;
  240. padding: 0 15px;
  241. background-color: transparent;
  242. border: none;
  243. text-align: center;
  244. font-style: normal;
  245. font-weight: 500;
  246. font-size: 14px;
  247. line-height: 50px;
  248. color: #3c3c3c;
  249. cursor: pointer;
  250. transition: background-color 0.2s ease-in;
  251. }
  252. .location__btn:hover {
  253. background-color: #fff0bb;
  254. }
  255. .location__checkbox {
  256. width: 1px;
  257. height: 1px;
  258. position: absolute;
  259. opacity: 0;
  260. appearance: none;
  261. }
  262. .location__checkbox:checked + .location__btn {
  263. background-color: #ffcf26;
  264. }
  265. .location__checkbox:checked + .location__btn:hover {
  266. background-color: #e0b000;
  267. }
  268. /* Radio */
  269. .radio {
  270. display: block;
  271. cursor: pointer;
  272. }
  273. .radio + .radio {
  274. margin-top: 15px;
  275. }
  276. .radio__real {
  277. width: 1px;
  278. height: 1px;
  279. position: absolute;
  280. opacity: 0;
  281. appearance: none;
  282. }
  283. .radio__fake {
  284. position: relative;
  285. display: inline-block;
  286. margin-right: 7px;
  287. width: 20px;
  288. height: 20px;
  289. background-color: #fff;
  290. border: 1px solid #777777;
  291. border-radius: 50%;
  292. vertical-align: bottom;
  293. }
  294. .radio__real:checked + .radio__fake {
  295. background-color: #ffe074;
  296. }
  297. .radio__real:checked + .radio__fake::before {
  298. position: absolute;
  299. top: 50%;
  300. left: 50%;
  301. content: '';
  302. border-radius: 50%;
  303. width: 6px;
  304. height: 6px;
  305. background: #3c3c3c;
  306. transform: translate(-50%, -50%);
  307. }
  308. .radio__real:checked ~ .radio__title {
  309. font-weight: 500;
  310. }
  311. .radio__title {
  312. font-weight: 400;
  313. font-size: 16px;
  314. line-height: 1.18;
  315. color: #000000;
  316. }
  317. /* Checkbox */
  318. .checkbox {
  319. display: block;
  320. cursor: pointer;
  321. }
  322. .checkbox--hidden {
  323. display: none;
  324. }
  325. .checkbox + .checkbox {
  326. margin-top: 15px;
  327. }
  328. .checkbox__real {
  329. width: 1px;
  330. height: 1px;
  331. position: absolute;
  332. opacity: 0;
  333. appearance: none;
  334. }
  335. .checkbox__fake {
  336. position: relative;
  337. display: inline-block;
  338. margin-right: 7px;
  339. width: 20px;
  340. height: 20px;
  341. background-color: transparent;
  342. border: 1px solid #777777;
  343. border-radius: 2px;
  344. vertical-align: bottom;
  345. }
  346. .checkbox__real:checked + .checkbox__fake {
  347. background-color: #ffe074;
  348. }
  349. .checkbox__real:checked + .checkbox__fake::before {
  350. position: absolute;
  351. top: 50%;
  352. left: 50%;
  353. content: '';
  354. width: 18px;
  355. height: 18px;
  356. background-image: url('./../img/icons/check.svg');
  357. background-size: initial;
  358. background-position: center;
  359. transform: translate(-50%, -50%);
  360. }
  361. .checkbox__title {
  362. font-weight: 400;
  363. font-size: 16px;
  364. line-height: 1.18;
  365. color: #000000;
  366. }
  367. .checkbox__real:checked ~ .checkbox__title {
  368. font-weight: 500;
  369. }
  370. /* Hidden elements widget */
  371. .widget__hidden {
  372. display: none;
  373. }
  374. .widget__btn-show-hidden {
  375. display: inline-block;
  376. margin-top: 15px;
  377. padding: 0;
  378. background: transparent;
  379. border: none;
  380. font-family: inherit;
  381. font-style: normal;
  382. font-weight: normal;
  383. font-size: 16px;
  384. line-height: 1.19;
  385. color: #4290c9;
  386. cursor: pointer;
  387. transition: color 0.2s ease-in;
  388. }
  389. .widget__btn-show-hidden:active, .widget__btn-show-hidden:focus {
  390. outline: none;
  391. }
  392. .widget__btn-show-hidden:hover {
  393. color: #007fda;
  394. text-decoration: underline;
  395. }
  396. /* Toggle */
  397. .toggle {
  398. cursor: pointer;
  399. }
  400. .toggle__real {
  401. width: 1px;
  402. height: 1px;
  403. position: absolute;
  404. opacity: 0;
  405. appearance: none;
  406. }
  407. .toggle__fake {
  408. position: relative;
  409. display: inline-block;
  410. margin-right: 7px;
  411. width: 37px;
  412. height: 20px;
  413. background: #c4c4c4;
  414. border-radius: 10px;
  415. vertical-align: bottom;
  416. }
  417. .toggle__fake::before {
  418. position: absolute;
  419. top: 2px;
  420. left: 2px;
  421. content: '';
  422. width: 16px;
  423. height: 16px;
  424. background: #3c3c3c;
  425. border-radius: 50%;
  426. transition: all 0.2s ease-in;
  427. }
  428. .toggle__real:checked + .toggle__fake {
  429. background: #ffe074;
  430. }
  431. .toggle__real:checked + .toggle__fake::before {
  432. left: 19px;
  433. /* right: 2px; */
  434. }
  435. .toggle__title {
  436. font-weight: 400;
  437. font-size: 16px;
  438. line-height: 1.18;
  439. color: #000000;
  440. }
  441. .toggle__real:checked ~ .toggle__title {
  442. font-weight: 500;
  443. }
  444. /* Form buttons */
  445. .form-btn {
  446. display: flex;
  447. align-items: center;
  448. justify-content: center;
  449. width: 100%;
  450. height: 50px;
  451. border: 1px solid #d6d6d6;
  452. border-radius: 4px;
  453. background-color: transparent;
  454. font-family: inherit;
  455. text-align: center;
  456. font-style: normal;
  457. font-weight: normal;
  458. font-size: 16px;
  459. line-height: 1;
  460. color: #3c3c3c;
  461. cursor: pointer;
  462. transition: background-color 0.2s ease-in;
  463. }
  464. .form-btn img {
  465. /* display: inline-block; */
  466. margin-right: 6px;
  467. /* vertical-align: middle; */
  468. /* margin-top: -2px; */
  469. }
  470. .form-btn:hover {
  471. background-color: #e7e7e7;
  472. }
  473. .form-btn + .form-btn {
  474. margin-top: 10px;
  475. }
  476. .form-btn--submit {
  477. background: #ffcf26;
  478. border: none;
  479. color: #000;
  480. }
  481. .form-btn--submit:hover {
  482. background: #ffe173;
  483. }
  484. /* Button Toggle Sidebar */
  485. .toggle-sidebar {
  486. display: none;
  487. position: fixed;
  488. z-index: 9;
  489. right: 15px;
  490. top: 8px;
  491. width: 45px;
  492. height: 45px;
  493. background-color: rgb(71, 71, 71);
  494. justify-content: center;
  495. align-items: center;
  496. }
  497. @media (max-width: 829px) {
  498. .toggle-sidebar {
  499. display: flex;
  500. }
  501. }
  502. .menu-icon-wrapper {
  503. width: 30px;
  504. height: 30px;
  505. display: flex;
  506. justify-content: center;
  507. align-items: center;
  508. padding: 0;
  509. border: none;
  510. background-color: transparent;
  511. }
  512. .menu-icon {
  513. position: relative;
  514. width: 30px;
  515. height: 5px;
  516. background-color: #fff;
  517. }
  518. .menu-icon::before {
  519. position: absolute;
  520. left: 0;
  521. top: -10px;
  522. content: '';
  523. width: 30px;
  524. height: 5px;
  525. background-color: #fff;
  526. transition: transform 0.2s ease-in, top 0.2s linear 0.2s;
  527. }
  528. .menu-icon::after {
  529. position: absolute;
  530. left: 0;
  531. top: 10px;
  532. content: '';
  533. width: 30px;
  534. height: 5px;
  535. background-color: #fff;
  536. transition: transform 0.2s ease-in, top 0.2s linear 0.2s;
  537. }
  538. .menu-icon.menu-icon-active {
  539. background-color: transparent;
  540. }
  541. .menu-icon.menu-icon-active::before {
  542. transform: rotate(45deg);
  543. top: 0;
  544. transition: top 0.2s linear, transform 0.2s ease-in 0.2s;
  545. }
  546. .menu-icon.menu-icon-active::after {
  547. transform: rotate(-45deg);
  548. top: 0;
  549. transition: top 0.2s linear, transform 0.2s ease-in 0.2s;
  550. }