_price-block.less 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. /* Price block */
  2. @media screen and (min-width: 1209px) {
  3. .price-block__item {
  4. &:hover {
  5. background-color: #F8F8F8;
  6. }
  7. }
  8. .price-block__tabs {
  9. .price-block__tabs__item {
  10. &:hover {
  11. color: #AD957C;
  12. }
  13. }
  14. }
  15. }
  16. .price-block {
  17. margin-bottom: 150px;
  18. }
  19. .price-block__tabs {
  20. display: flex;
  21. justify-content: center;
  22. margin-bottom: 40px;
  23. .price-block__tabs__item {
  24. &:first-child {
  25. margin-right: 45px;
  26. }
  27. }
  28. }
  29. .price-block__tabs__item {
  30. font-family: "Cochin",serif;
  31. font-weight: 700;
  32. font-size: 20px;
  33. line-height: 23px;
  34. text-align: center;
  35. text-transform: uppercase;
  36. position: relative;
  37. transition: color .4s;
  38. &.active {
  39. color: #AD957C;
  40. &::before {
  41. opacity: 1;
  42. }
  43. }
  44. &::before {
  45. content: "";
  46. width: 6px;
  47. height: 6px;
  48. position: absolute;
  49. left: -15px;
  50. top: 50%;
  51. transform: translateY(-50%);
  52. background-color: #AD957C;
  53. opacity: 0;
  54. transition: opacity .4s;
  55. }
  56. }
  57. .price-block__list {
  58. display: flex;
  59. }
  60. .price-block__slider {
  61. position: relative;
  62. min-height: 400px;
  63. transition: height .4s;
  64. }
  65. .price-block__list--slider {
  66. position: absolute;
  67. width: 100%;
  68. left: 0px;
  69. top: 0px;
  70. transition: opacity .4s;
  71. z-index: 0;
  72. &.show {
  73. z-index: 1;
  74. .price-block__item--slider {
  75. opacity: 1;
  76. &:nth-child(1) {
  77. transform: translateY(0px);
  78. }
  79. &:nth-child(2) {
  80. transform: translateY(0px);
  81. }
  82. &:nth-child(3) {
  83. transform: translateY(0px);
  84. }
  85. &:nth-child(4) {
  86. transform: translateY(0px);
  87. }
  88. }
  89. }
  90. }
  91. .price-block__item {
  92. display: flex;
  93. flex-direction: column;
  94. width: 25%;
  95. padding: 20px;
  96. text-align: center;
  97. border: 1px solid #E0E0E0;
  98. margin-right: 30px;
  99. transition: background-color .4s;
  100. &:last-child {
  101. margin-right: 0px;
  102. }
  103. .main-button {
  104. margin: auto auto 0px;
  105. }
  106. }
  107. .price-block__item--slider {
  108. opacity: 0;
  109. &:nth-child(1) {
  110. transform: translateY(100px);
  111. transition: opacity .6s 0s, transform .6s 0s;
  112. }
  113. &:nth-child(2) {
  114. transform: translateY(100px);
  115. transition: opacity .6s .2s, transform .6s .2s;
  116. }
  117. &:nth-child(3) {
  118. transform: translateY(100px);
  119. transition: opacity .6s .4s, transform .6s .4s;
  120. }
  121. &:nth-child(4) {
  122. transform: translateY(100px);
  123. transition: opacity .6s .6s, transform .6s .6s;
  124. }
  125. }
  126. .price-block__item__name {
  127. font-family: "Cochin", serif;
  128. font-weight: 700;
  129. font-size: 18px;
  130. line-height: 21px;
  131. letter-spacing: 0.05em;
  132. text-transform: uppercase;
  133. color: #7A1B2E;
  134. max-width: 50%;
  135. margin: 0px auto 15px;
  136. }
  137. .price-block__item__price {
  138. font-family: "Cochin", serif;
  139. font-style: normal;
  140. font-weight: 700;
  141. font-size: 24px;
  142. line-height: 28px;
  143. text-transform: uppercase;
  144. margin-bottom: 15px;
  145. span {
  146. padding-left: 10px;
  147. }
  148. }
  149. .price-block__item__installment {
  150. font-weight: 700;
  151. font-size: 11px;
  152. line-height: 14px;
  153. letter-spacing: 0.05em;
  154. text-transform: uppercase;
  155. color: #828282;
  156. margin-bottom: 5px;
  157. }
  158. .price-block__item__installment-price {
  159. font-weight: 700;
  160. font-size: 12px;
  161. line-height: 15px;
  162. color: #4F4F4F;
  163. }
  164. .price-block__sub-list {
  165. text-align: left;
  166. margin: 20px 0px 30px;
  167. font-weight: bold;
  168. font-size: 13px;
  169. line-height: 120%;
  170. color: #4F4F4F;
  171. }
  172. .price-block__sub-item {
  173. position: relative;
  174. padding-left: 16px;
  175. margin-bottom: 20px;
  176. &:last-child {
  177. margin-bottom: 0px;
  178. }
  179. &::before {
  180. content: "";
  181. position: absolute;
  182. left: 0px;
  183. top: 5px;
  184. width: 6px;
  185. height: 6px;
  186. background-color: #AD957C;
  187. }
  188. }
  189. .price-block__sub-text {
  190. margin-bottom: 40px;
  191. font-size: 16px;
  192. line-height: 150%;
  193. }
  194. .price-block__sub-text__caption {
  195. font-weight: 500;
  196. font-size: 18px;
  197. margin-top: 30px;
  198. }
  199. .price-page__item-wrapper {
  200. margin-bottom: 100px;
  201. }
  202. .price-block__tabs__wrapper {
  203. display: flex;
  204. justify-content: center;
  205. margin-bottom: 30px;
  206. .price-block__tabs__item {
  207. &::before {
  208. opacity: 1;
  209. }
  210. }
  211. }
  212. .price-page__sub-info {
  213. font-size: 18px;
  214. line-height: 150%;
  215. p {
  216. margin-bottom: 27px;
  217. padding-left: 13px;
  218. position: relative;
  219. &::before {
  220. content: "";
  221. width: 23px;
  222. height: 23px;
  223. position: absolute;
  224. left: 0px;
  225. top: -7px;
  226. z-index: -1;
  227. background-color: #E0E0E0;
  228. }
  229. &:last-child {
  230. margin-bottom: 0px;
  231. }
  232. }
  233. }
  234. @media screen and (max-width: 1210px) {
  235. .price-block {
  236. margin-bottom: 50px;
  237. }
  238. .price-block__slider {
  239. min-height: 500px;
  240. }
  241. .price-block__list {
  242. flex-direction: column;
  243. margin-bottom: -20px;
  244. }
  245. .price-block__list--main-page {
  246. .price-block__item {
  247. display: none;
  248. &:nth-child(-n + 2) {
  249. display: flex;
  250. }
  251. }
  252. }
  253. .price-block__item {
  254. width: 100%;
  255. margin-bottom: 20px;
  256. margin-right: 0px;
  257. }
  258. .price-block__tabs {
  259. flex-direction: column;
  260. align-items: center;
  261. justify-content: center;
  262. margin-bottom: 30px;
  263. .price-block__tabs__item {
  264. &:first-child {
  265. margin-bottom: 20px;
  266. margin-right: 0px;
  267. }
  268. }
  269. }
  270. }
  271. /* //Price block */