Revert "Andrei | wip: рефакторинг разнес все в templates. вытащил отдельно js + css"

This reverts commit 085accd36d.
pull/33/head^2
parent 085accd36d
commit f19fc0d0d3
  1. 47
      wp-content/themes/cosmopet/functions.php
  2. 722
      wp-content/themes/cosmopet/modules/author/assets/css/author-style.css.bak
  3. 159
      wp-content/themes/cosmopet/modules/author/assets/css/gp-style-desktop.css
  4. 120
      wp-content/themes/cosmopet/modules/author/assets/css/gp-style-mobile.css
  5. 44
      wp-content/themes/cosmopet/modules/author/assets/css/gp-style-tablet.css
  6. 0
      wp-content/themes/cosmopet/modules/author/assets/img/arrow-down.svg
  7. 0
      wp-content/themes/cosmopet/modules/author/assets/img/author-1.png
  8. 0
      wp-content/themes/cosmopet/modules/author/assets/img/author-2.png
  9. 0
      wp-content/themes/cosmopet/modules/author/assets/img/author-3.png
  10. 0
      wp-content/themes/cosmopet/modules/author/assets/img/author-4.png
  11. 0
      wp-content/themes/cosmopet/modules/author/assets/img/author-5.png
  12. 0
      wp-content/themes/cosmopet/modules/author/assets/img/author-main-card.png
  13. 11
      wp-content/themes/cosmopet/modules/author/assets/img/bars.svg
  14. 0
      wp-content/themes/cosmopet/modules/author/assets/img/basket-icon.svg
  15. 0
      wp-content/themes/cosmopet/modules/author/assets/img/favicon.ico
  16. 0
      wp-content/themes/cosmopet/modules/author/assets/img/footer-network-1.svg
  17. 0
      wp-content/themes/cosmopet/modules/author/assets/img/footer-network-2.svg
  18. 0
      wp-content/themes/cosmopet/modules/author/assets/img/footer-network-3.svg
  19. 0
      wp-content/themes/cosmopet/modules/author/assets/img/header-red.svg
  20. 0
      wp-content/themes/cosmopet/modules/author/assets/img/heart-grey.svg
  21. 0
      wp-content/themes/cosmopet/modules/author/assets/img/heart-white.svg
  22. 0
      wp-content/themes/cosmopet/modules/author/assets/img/heart.svg
  23. 0
      wp-content/themes/cosmopet/modules/author/assets/img/indent-icon-1.svg
  24. 0
      wp-content/themes/cosmopet/modules/author/assets/img/logo-green.svg
  25. 3
      wp-content/themes/cosmopet/modules/author/assets/img/logo.svg
  26. 0
      wp-content/themes/cosmopet/modules/author/assets/img/long-arrow.svg
  27. 0
      wp-content/themes/cosmopet/modules/author/assets/img/minus-icon.svg
  28. 0
      wp-content/themes/cosmopet/modules/author/assets/img/msg-green.svg
  29. 0
      wp-content/themes/cosmopet/modules/author/assets/img/msg-grey.svg
  30. 0
      wp-content/themes/cosmopet/modules/author/assets/img/msg-white.svg
  31. 0
      wp-content/themes/cosmopet/modules/author/assets/img/msg.svg
  32. 0
      wp-content/themes/cosmopet/modules/author/assets/img/plus-icon.svg
  33. 0
      wp-content/themes/cosmopet/modules/author/assets/img/swp-next.svg
  34. 0
      wp-content/themes/cosmopet/modules/author/assets/img/swp-prev.svg
  35. 0
      wp-content/themes/cosmopet/modules/author/assets/img/user-icon.svg
  36. 0
      wp-content/themes/cosmopet/modules/author/assets/js/author-posts-ajax.js
  37. 46
      wp-content/themes/cosmopet/modules/author/assets/js/author-posts-ajax.js.bak
  38. 2
      wp-content/themes/cosmopet/modules/author/components/author-archive/component-controller.php
  39. 2
      wp-content/themes/cosmopet/modules/author/components/author-single/component-controller.php
  40. 2
      wp-content/themes/cosmopet/modules/author/module-ajax-controller.php
  41. 22
      wp-content/themes/cosmopet/modules/blog/assets/css/gp-style-desktop.css
  42. 10
      wp-content/themes/cosmopet/modules/blog/assets/css/gp-style-mobile.css
  43. 1
      wp-content/themes/cosmopet/modules/blog/assets/css/gp-style-tablet.css
  44. 4
      wp-content/themes/cosmopet/modules/blog/assets/css/gp-style-ultra.css
  45. 11
      wp-content/themes/cosmopet/modules/blog/assets/css/gp-style-xl.css
  46. 0
      wp-content/themes/cosmopet/modules/blog/assets/js/comments.js
  47. 198
      wp-content/themes/cosmopet/modules/blog/assets/js/comments.js.bak
  48. 2
      wp-content/themes/cosmopet/modules/blog/components/archive/component-controller.php
  49. 0
      wp-content/themes/cosmopet/modules/blog/components/author-banner/assets/css/style.css
  50. 0
      wp-content/themes/cosmopet/modules/blog/components/editorial/assets/css/style.css
  51. 98
      wp-content/themes/cosmopet/modules/blog/components/featured-slider/assets/css/gp-style-desktop.css
  52. 0
      wp-content/themes/cosmopet/modules/blog/components/featured-slider/assets/css/gp-style-mobile.css
  53. 96
      wp-content/themes/cosmopet/modules/blog/components/featured-slider/assets/css/gp-style-tablet.css
  54. 0
      wp-content/themes/cosmopet/modules/blog/components/featured-slider/assets/js/slider.js
  55. 0
      wp-content/themes/cosmopet/modules/blog/components/news-list/assets/js/posts-ajax.js
  56. 148
      wp-content/themes/cosmopet/modules/blog/components/single/assets/css/gp-style-desktop.css
  57. 0
      wp-content/themes/cosmopet/modules/blog/components/single/assets/css/gp-style-mobile.css
  58. 145
      wp-content/themes/cosmopet/modules/blog/components/single/assets/css/gp-style-tablet.css
  59. 0
      wp-content/themes/cosmopet/modules/blog/components/single/assets/js/comments.js
  60. 0
      wp-content/themes/cosmopet/modules/blog/components/single/assets/js/post-likes.js
  61. 2
      wp-content/themes/cosmopet/modules/blog/components/single/component-controller.php
  62. 0
      wp-content/themes/cosmopet/modules/blog/components/themes/assets/css/gp-style-desktop.css
  63. 0
      wp-content/themes/cosmopet/modules/blog/components/themes/assets/css/gp-style-mobile.css
  64. 0
      wp-content/themes/cosmopet/modules/blog/components/themes/assets/css/gp-style-tablet.css
  65. 276
      wp-content/themes/cosmopet/modules/footer/assets/css/footer.css.bak
  66. 69
      wp-content/themes/cosmopet/modules/footer/assets/css/gp-style-desktop.css
  67. 4
      wp-content/themes/cosmopet/modules/footer/assets/css/gp-style-tablet.css
  68. 0
      wp-content/themes/cosmopet/modules/footer/assets/js/footer.js
  69. 314
      wp-content/themes/cosmopet/modules/footer/assets/js/footer.js.bak
  70. 143
      wp-content/themes/cosmopet/modules/forms/assets/js/form.js
  71. 4007
      wp-content/themes/cosmopet/modules/forms/components/discount/assets/css/discount-form.css
  72. 0
      wp-content/themes/cosmopet/modules/forms/module.template.twig
  73. 46
      wp-content/themes/cosmopet/modules/header/assets/css/gp-style-desktop.css
  74. 0
      wp-content/themes/cosmopet/modules/header/assets/css/gp-style-mobile.css
  75. 32
      wp-content/themes/cosmopet/modules/header/assets/css/gp-style-tablet.css
  76. 4
      wp-content/themes/cosmopet/modules/header/assets/css/gp-style-ultra.css
  77. 11
      wp-content/themes/cosmopet/modules/header/assets/css/gp-style-xl.css
  78. 810
      wp-content/themes/cosmopet/modules/header/assets/css/header.css.bak
  79. 0
      wp-content/themes/cosmopet/modules/layout/assets/css/gp-style-core.css
  80. 0
      wp-content/themes/cosmopet/modules/layout/assets/css/gp-style-full.css
  81. 0
      wp-content/themes/cosmopet/modules/layout/assets/css/gp-style-normalize.css
  82. 0
      wp-content/themes/cosmopet/modules/layout/assets/css/swiper-bundle.css
  83. 735
      wp-content/themes/cosmopet/modules/layout/assets/css/swiper-bundle.css.bak
  84. 0
      wp-content/themes/cosmopet/modules/layout/assets/js/core.js
  85. 0
      wp-content/themes/cosmopet/modules/layout/assets/js/gp-form.js
  86. 0
      wp-content/themes/cosmopet/modules/layout/assets/js/gp-main.js
  87. 0
      wp-content/themes/cosmopet/modules/layout/assets/js/gp-product.js
  88. 0
      wp-content/themes/cosmopet/modules/layout/assets/js/swiper-bundle.min.js
  89. 14
      wp-content/themes/cosmopet/modules/layout/assets/js/swiper-bundle.min.js.bak
  90. 0
      wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-desktop.css
  91. 0
      wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-mobile.css
  92. 0
      wp-content/themes/cosmopet/modules/popup/assets/css/gp-style-tablet.css
  93. 0
      wp-content/themes/cosmopet/modules/popup/assets/js/modal.js
  94. 116
      wp-content/themes/cosmopet/modules/popup/assets/js/modal.js.bak
  95. 0
      wp-content/themes/cosmopet/modules/profile/assets/css/profile.css
  96. 3240
      wp-content/themes/cosmopet/modules/profile/assets/css/profile.css.bak
  97. 0
      wp-content/themes/cosmopet/modules/profile/assets/js/profile.js
  98. 96
      wp-content/themes/cosmopet/modules/profile/assets/js/profile.js.bak
  99. 4
      wp-content/themes/cosmopet/modules/profile/components/profile/component-controller.php
  100. 2
      wp-content/themes/cosmopet/modules/profile/components/subscription_single/component-controller.php
  101. Some files were not shown because too many files have changed in this diff Show More

@ -24,52 +24,5 @@ require_once __DIR__ . '/temp-functions/filters-logic.php';
function theme_enqueue_scripts() {
$base_dir = get_template_directory_uri() . '/static/js/';
// Библиотеки
wp_enqueue_script('materialize', $base_dir . 'libs/materialize.min.js', array(), null, true);
wp_enqueue_script('swiper-bundle', $base_dir . 'libs/swiper-bundle.min.js', array(), null, true);
// Скрипты из js-single-product
wp_enqueue_script('gp-form', $base_dir . 'js-single-product/gp-form.js', array(), null, true);
wp_enqueue_script('gp-main', $base_dir . 'js-single-product/gp-main.js', array(), null, true);
wp_enqueue_script('gp-product', $base_dir . 'js-single-product/gp-product.js', array(), null, true);
wp_enqueue_script('tabs', $base_dir . 'js-single-product/tabs.js', array(), null, true);
wp_enqueue_script('toggle', $base_dir . 'js-single-product/toggle.js', array(), null, true);
// Основные скрипты
$scripts = array(
'about-page', 'author-posts-ajax', 'blog', 'cart', 'checkout', 'comments',
'footer', 'forms', 'front-page', 'header', 'layout-core', 'layout-form',
'layout-main', 'layout-product', 'modal', 'popups', 'production-page',
'profile', 'script', 'tags-in-wpf_filter', 'wtb-page'
);
foreach ($scripts as $script) {
wp_enqueue_script($script, $base_dir . $script . '.js', array(), null, true);
}
}
add_action('wp_enqueue_scripts', 'theme_enqueue_scripts');
function theme_enqueue_styles() {
$base_dir = get_template_directory_uri() . '/static/css/';
$libs_dir = $base_dir . 'libs/';
// CSS из папки libs
wp_enqueue_style('materialize', $libs_dir . 'materialize.min.css');
wp_enqueue_style('swiper-bundle', $libs_dir . 'swiper-bundle.css');
// Основные CSS-файлы
$styles = array(
'about-page', 'author-style', 'blog-style', 'checkout', 'footer',
'forms', 'front-page', 'gp-layout-core', 'gp-layout-full',
'gp-normalize', 'header', 'production-page', 'profile', 'shop',
'single-product', 'style', 'wtb-page'
);
foreach ($styles as $style) {
wp_enqueue_style($style, $base_dir . $style . '.css');
}
}
add_action('wp_enqueue_scripts', 'theme_enqueue_styles');

@ -1,722 +0,0 @@
/* Authors */
.authors {
padding-bottom: 120px;
}
.authors h2 {
font-weight: bold;
font-size: 64px;
line-height: 120%;
color: white;
text-transform: uppercase;
margin-bottom: 36px;
}
.authors ul {
display: flex;
flex-wrap: wrap;
align-items: stretch;
justify-content: center;
gap: 24px;
}
.authors li {
background: #F5F5F5;
border-radius: 48px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: calc(100% / 3 - 16px);
}
.authors a {
padding: 52px 17px 57px;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.authors .main-img {
width: 200px;
height: 200px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
margin-bottom: 31px;
}
.authors .main-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.authors-name {
font-size: 24px;
font-weight: bold;
text-transform: uppercase;
line-height: 28px;
color: #121212;
margin-bottom: 5px;
}
.authors-type {
color: #121212;
font-size: 24px;
font-weight: 500;
line-height: 32px;
margin-bottom: 31px;
}
.authors p {
color: #666666;
font-weight: 500;
font-size: 20px;
line-height: 24px;
}
/* Authors end */
/* author-head */
.author-head {
padding-bottom: 36px;
}
.author-head-content {
display: flex;
align-items: center;
gap: 31px;
margin-bottom: 17.5px;
}
.author-head .main-img {
width: 278px;
height: 278px;
flex-shrink: 0;
border-radius: 48px;
overflow: hidden;
}
.author-head .main-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.author-name {
font-size: 24px;
font-weight: bold;
line-height: 28px;
color: white;
margin-bottom: 5px;
text-transform: uppercase;
}
.author-type {
font-size: 24px;
font-weight: 500;
line-height: 32px;
color: white;
margin-bottom: 5px;
}
.author-description {
font-size: 24px;
font-weight: 500;
line-height: 32px;
color: white;
margin-bottom: 45px;
}
.author-head p {
font-size: 20px;
font-weight: 500;
line-height: 24px;
color: white;
}
.author-head h2 {
font-size: 64px;
font-weight: bold;
line-height: 120%;
color: white;
}
/* author-head end */
.home-title {
font-size: 82px;
font-weight: bold;
line-height: 96px;
color: var(--main_white);
margin-bottom: 16px;
}
.home-description {
font-size: 32px;
font-weight: bold;
line-height: 40px;
color: var(--main_white);
text-transform: uppercase;
margin-bottom: 68px;
}
.home-swp {
position: relative;
}
.home-swp__btn {
position: absolute;
bottom: 22px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
display: flex;
align-items: center;
gap: 24px;
}
.home-swp__btn button {
border: 1px solid var(--main_black);
background: var(--main_white);
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 20px;
}
.home-swp .swiper-slide:not(.swiper-slide-active) {
height: 0;
overflow: hidden;
}
.home-card {
border-radius: 60px;
overflow: hidden;
display: flex;
align-items: flex-start;
gap: 24px;
position: relative;
}
.home-card.bg-yellow {
background: var(--orange_80);
}
.home-card.bg-green {
background: var(--green_90);
}
.home-card.bg-violet {
background: var(--violet_90);
}
.home-card__img {
width: 395px;
border-radius: 60px;
overflow: hidden;
height: 393px;
flex-shrink: 0;
}
.home-card__img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.home-card__content {
padding: 32px 79px 0 0;
}
.home-card__content-title {
font-size: 36px;
font-weight: bold;
line-height: 40px;
text-transform: uppercase;
max-width: 660px;
margin-bottom: 10px;
color: var(--interface_title);
}
.home-card__content-description {
color: var(--interface_title);
margin-bottom: 10px;
font-size: 20px;
font-weight: 500;
line-height: 24px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.home-card__content-body {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}
.home-card__content-body__alerts {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}
.home-card__content-body__alerts li {
background: var(--interface_hover);
color: var(--background);
border-radius: 16px;
padding: 6px 8px;
font-size: 16px;
font-weight: 500;
line-height: 20px;
}
.home-card__content-body__day {
color: var(--interface_hover);
font-size: 14px;
font-weight: 500;
line-height: 16px;
}
.home-card__content-body__time {
font-size: 14px;
font-weight: 500;
line-height: 16px;
color: var(--interface_hover);
}
.home-card__content-body__data {
display: flex;
align-items: center;
gap: 12px;
}
.home-card__content-body__data>div {
display: flex;
align-items: center;
gap: 4px;
font-size: 14px;
font-weight: 500;
line-height: 16px;
color: var(--interface_hover);
}
.home-card__content-body__data>div .main-img {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}
.home-card__content-body__link {
border: 1px solid #000000;
border-radius: 28px;
background: var(--main_white);
position: absolute;
right: 37px;
bottom: 26px;
padding: 8.5px 16px 12.5px;
font-style: 20px;
font-weight: 500;
line-height: 24px;
}
/* Home end */
/* Anons */
.anons {
background: var(--main_white);
border-radius: 60px;
padding: 51px 0;
}
.anons-theme__title {
color: var(--main_black);
font-size: 24px;
font-weight: bold;
line-height: 28px;
text-transform: uppercase;
margin-bottom: 20px;
}
.anons-theme {
margin-bottom: 60px;
}
.anons-theme ul {
max-width: 1022px;
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.anons-theme ul a {
font-size: 20px;
font-weight: 600;
line-height: 24px;
color: var(--main_black);
padding: 4px 24px;
border: 1px solid #000;
border-radius: 20px;
}
.anons-theme ul a:hover,
.anons-theme ul a.active {
background: var(--main_black);
color: var(--main_white);
}
.anons-best {
margin-bottom: 60px;
}
.anons-best__title {
font-size: 36px;
line-height: 40px;
font-weight: bold;
color: var(--main_black);
margin-bottom: 20px;
}
.anons-best__card-wrap {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
}
.anons-best__card {
padding-top: 293px;
border-radius: 48px;
overflow: hidden;
position: relative;
z-index: 1;
}
.anons-best__card.light {
padding-top: 0;
border-radius: 0;
}
.anons-best__card .main-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 360px;
z-index: -1;
}
.anons-best__card .main-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.anons-best__card.light .main-img {
position: static;
height: 265px;
}
.anons-best__card.light .main-img img {
border-radius: 30px;
}
.anons-best__card-alerts {
position: absolute;
top: 21px;
left: 17px;
width: calc(100% - 34px);
display: flex;
flex-wrap: wrap;
gap: 7px;
z-index: 1;
}
.anons-best__card-alerts li {
padding: 6px 8px;
font-size: 16px;
line-height: 20px;
font-weight: 500;
color: var(--background);
background: var(--main_black);
border-radius: 30px;
}
.anons-best__card-body {
background: var(--accent-1);
padding: 30px 17px 22px;
border-radius: 48px 48px 0 0;
color: var(--main_white);
position: relative;
height: 100%;
}
.anons-best__card.light .anons-best__card-body {
background: transparent;
color: var(--main_black);
padding: 12px 0 34px;
}
.anons-best__card-body__title {
font-size: 28px;
font-weight: bold;
line-height: 32px;
text-transform: uppercase;
margin-bottom: 14px;
}
.anons-best__card.light .anons-best__card-body__title {
font-size: 26px;
}
.anons-best__card-body__datas {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px 10px;
max-width: 264px;
}
.anons-best__card.light .anons-best__card-body__datas {
color: var(--placeholder);
}
.anons-best__card-body__datas p {
font-size: 14px;
line-height: 16px;
font-weight: 500;
}
.anons-best__card-body__datas ul {
display: flex;
align-items: center;
gap: 10px;
}
.anons-best__card-body__datas ul li {
display: flex;
align-items: center;
gap: 4px;
font-size: 14px;
line-height: 16px;
font-weight: 500;
}
.anons-best__card-body__datas ul .logo img {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}
.anons-article {
margin-bottom: 40px;
}
.anons-article__title {
font-size: 36px;
line-height: 40px;
font-weight: bold;
color: var(--main_black);
margin-bottom: 20px;
}
.anons-article__card-wrap {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 40px 25px;
}
.anons-article__more-link {
display: flex;
align-items: center;
justify-content: center;
}
.anons-article__more-link a {
background: var(--accent-3);
color: var(--main_white);
border-radius: 20px;
border: 1px solid var(--main_white);
padding: 16px 24px;
font-size: 20px;
font-weight: 600;
line-height: 24px;
text-transform: uppercase;
}
/* Anons end */
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.authors h2 {
font-size: 48px;
margin-bottom: 24px;
}
.authors li {
border-radius: 32px;
width: calc(50% - 12px);
}
.authors .main-img {
margin-bottom: 24px;
}
.author {
padding-bottom: 24px;
}
.author h2 {
font-size: 48px;
}
.author-head-content {
flex-direction: column;
align-items: flex-start;
}
}
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.author {
padding: 188px 0 36px;
}
}
@media only screen and (max-width: 576px) {
.anons-best__title {
font-size: 26px;
line-height: 32px;
margin-bottom: 12px;
}
.anons-best__card {
padding-top: 205px;
}
.anons-best__card .main-img {
height: 300px;
}
.anons-best__card-body {
padding: 20px 17px;
}
.anons-best__card-body__title {
font-size: 20px;
line-height: 24px;
margin-bottom: 16px;
}
.anons-best__card.light .main-img {
height: 197px;
}
.anons-best__card.light .anons-best__card-body__title {
font-size: 20px;
line-height: 24px;
}
.authors {
padding-bottom: 138px;
}
.authors h2 {
font-size: 32px;
line-height: 38px;
margin-bottom: 15px;
}
.authors li {
border-radius: 24px;
width: 100%;
}
.authors a {
padding: 32px 17px 52px;
}
.authors .main-img {
width: 180px;
height: 180px;
margin-bottom: 20px;
}
.authors-name {
font-size: 20px;
line-height: 24px;
}
.authors-type {
font-size: 18px;
line-height: 24px;
margin-bottom: 20px;
}
.authors p {
font-size: 16px;
line-height: 20px;
}
.author-head {
padding-bottom: 15px;
}
.author-head-content {
margin-bottom: 23px;
}
.author-head .main-img {
width: 100%;
}
.author-head h2 {
font-size: 32px;
line-height: 38px;
}
.author-name {
font-size: 20px;
line-height: 24px;
}
.author-type {
font-size: 18px;
line-height: 24px;
}
.author-description {
font-size: 18px;
line-height: 24px;
margin-bottom: 24px;
}
.author-head p {
font-size: 16px;
line-height: 20px;
}
}

@ -554,165 +554,6 @@
/* Anons end */
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.authors h2 {
font-size: 48px;
margin-bottom: 24px;
}
.authors li {
border-radius: 32px;
width: calc(50% - 12px);
}
.authors .main-img {
margin-bottom: 24px;
}
.author {
padding-bottom: 24px;
}
.author h2 {
font-size: 48px;
}
.author-head-content {
flex-direction: column;
align-items: flex-start;
}
}
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.author {
padding: 188px 0 36px;
}
}
@media only screen and (max-width: 576px) {
.anons-best__title {
font-size: 26px;
line-height: 32px;
margin-bottom: 12px;
}
.anons-best__card {
padding-top: 205px;
}
.anons-best__card .main-img {
height: 300px;
}
.anons-best__card-body {
padding: 20px 17px;
}
.anons-best__card-body__title {
font-size: 20px;
line-height: 24px;
margin-bottom: 16px;
}
.anons-best__card.light .main-img {
height: 197px;
}
.anons-best__card.light .anons-best__card-body__title {
font-size: 20px;
line-height: 24px;
}
.authors {
padding-bottom: 138px;
}
.authors h2 {
font-size: 32px;
line-height: 38px;
margin-bottom: 15px;
}
.authors li {
border-radius: 24px;
width: 100%;
}
.authors a {
padding: 32px 17px 52px;
}
.authors .main-img {
width: 180px;
height: 180px;
margin-bottom: 20px;
}
.authors-name {
font-size: 20px;
line-height: 24px;
}
.authors-type {
font-size: 18px;
line-height: 24px;
margin-bottom: 20px;
}
.authors p {
font-size: 16px;
line-height: 20px;
}
.author-head {
padding-bottom: 15px;
}
.author-head-content {
margin-bottom: 23px;
}
.author-head .main-img {
width: 100%;
}
.author-head h2 {
font-size: 32px;
line-height: 38px;
}
.author-name {
font-size: 20px;
line-height: 24px;
}
.author-type {
font-size: 18px;
line-height: 24px;
}
.author-description {
font-size: 18px;
line-height: 24px;
margin-bottom: 24px;
}
.author-head p {
font-size: 16px;
line-height: 20px;
}
}

@ -0,0 +1,120 @@
/* Стили для мобильных устройств */
@media only screen and (max-width: 576px) {
.anons-best__title {
font-size: 26px;
line-height: 32px;
margin-bottom: 12px;
}
.anons-best__card {
padding-top: 205px;
}
.anons-best__card .main-img {
height: 300px;
}
.anons-best__card-body {
padding: 20px 17px;
}
.anons-best__card-body__title {
font-size: 20px;
line-height: 24px;
margin-bottom: 16px;
}
.anons-best__card.light .main-img {
height: 197px;
}
.anons-best__card.light .anons-best__card-body__title {
font-size: 20px;
line-height: 24px;
}
.authors {
padding-bottom: 138px;
}
.authors h2 {
font-size: 32px;
line-height: 38px;
margin-bottom: 15px;
}
.authors li {
border-radius: 24px;
width: 100%;
}
.authors a {
padding: 32px 17px 52px;
}
.authors .main-img {
width: 180px;
height: 180px;
margin-bottom: 20px;
}
.authors-name {
font-size: 20px;
line-height: 24px;
}
.authors-type {
font-size: 18px;
line-height: 24px;
margin-bottom: 20px;
}
.authors p {
font-size: 16px;
line-height: 20px;
}
.author-head {
padding-bottom: 15px;
}
.author-head-content {
margin-bottom: 23px;
}
.author-head .main-img {
width: 100%;
}
.author-head h2 {
font-size: 32px;
line-height: 38px;
}
.author-name {
font-size: 20px;
line-height: 24px;
}
.author-type {
font-size: 18px;
line-height: 24px;
}
.author-description {
font-size: 18px;
line-height: 24px;
margin-bottom: 24px;
}
.author-head p {
font-size: 16px;
line-height: 20px;
}
}

@ -0,0 +1,44 @@
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.authors h2 {
font-size: 48px;
margin-bottom: 24px;
}
.authors li {
border-radius: 32px;
width: calc(50% - 12px);
}
.authors .main-img {
margin-bottom: 24px;
}
.author {
padding-bottom: 24px;
}
.author h2 {
font-size: 48px;
}
.author-head-content {
flex-direction: column;
align-items: flex-start;
}
}
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.author {
padding: 188px 0 36px;
}
}

@ -0,0 +1,11 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_12806_2018)">
<path d="M4 8H20" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4 16H20" stroke="#121212" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_12806_2018">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 458 B

@ -0,0 +1,3 @@
<svg width="51" height="40" viewBox="0 0 51 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M50.4859 5.79145C49.0065 3.27258 44.6431 2.78969 38.1761 4.42108C35.0048 1.89583 31.1372 0.376333 27.0791 0.0613091C23.021 -0.253715 18.9613 0.650395 15.4309 2.65541C11.9004 4.66042 9.06364 7.673 7.29143 11.2992C5.51922 14.9254 4.8941 18.9964 5.49783 22.9798C0.798105 27.6978 -0.973633 31.6805 0.51234 34.2081C1.42019 35.7547 3.36998 36.5377 6.22762 36.5377C8.05553 36.5052 9.87449 36.2769 11.6527 35.8569C12.0352 35.7721 12.4265 35.6785 12.8222 35.5785C15.793 37.9443 19.3793 39.4307 23.1672 39.8663C26.9551 40.3018 30.7903 39.6687 34.2301 38.0399C37.67 36.4112 40.5744 33.8533 42.6083 30.6613C44.6421 27.4693 45.7224 23.7733 45.7246 19.9998C45.7261 19.0003 45.6527 18.002 45.5048 17.0132C48.3119 14.1855 50.1891 11.5144 50.7805 9.29786C51.1519 7.93619 51.0508 6.75724 50.4859 5.79145ZM25.5013 1.7282C29.77 1.73333 33.9054 3.19952 37.206 5.87806C40.5066 8.5566 42.7692 12.2825 43.61 16.4238C40.0555 19.8366 35.081 23.4888 29.4339 26.6994C23.4306 30.1122 17.8253 32.4092 13.253 33.66C10.4542 31.1997 8.47718 27.9557 7.5842 24.3581C6.69122 20.7605 6.92444 16.9793 8.25293 13.5159C9.58142 10.0525 11.9424 7.07045 15.0229 4.96526C18.1033 2.86006 21.7576 1.73114 25.5013 1.7282ZM2.03568 33.3337C1.10145 31.7458 2.58523 28.6353 5.93746 25.0549C6.84638 28.4997 8.66755 31.6421 11.2131 34.1581C6.34633 35.2261 2.96332 34.9172 2.03568 33.3337ZM25.5013 38.2714C21.7268 38.275 18.0427 37.1282 14.95 34.9868C19.6937 33.5556 25.0243 31.2085 30.3044 28.2089C35.635 25.1767 40.3303 21.8008 43.8957 18.5424C43.9353 19.0231 43.9617 19.5082 43.9617 19.9998C43.9559 24.8432 42.0092 29.4866 38.5486 32.9118C35.088 36.3371 30.3959 38.2645 25.5013 38.2714ZM49.0835 8.84759C48.6152 10.5877 47.1974 12.6868 45.0718 14.9512C44.1572 11.4985 42.3267 8.3504 39.7697 5.83278C44.5728 4.78434 48.0327 5.08016 48.9648 6.66588C49.2857 7.2162 49.3274 7.94924 49.0835 8.84759Z" fill="#121212"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -1,46 +0,0 @@
jQuery(document).ready(function ($) {
$('#ajax-load-author').on('submit', function (e) {
e.preventDefault();
var form = $(this);
var currentPage = parseInt($('#page_num').val());
var totalPosts = parseInt(form.data('total'));
var postsPerPage = 9;
console.log('Current page before load:', currentPage);
console.log('Total posts:', totalPosts);
console.log('Posts loaded before request:', postsPerPage);
var data = {
action: 'get_author_posts',
page_num: currentPage,
author_id: form.data('author')
};
console.log('Sending AJAX request with data:', data);
$.ajax({
url: '/wp-admin/admin-ajax.php',
type: 'POST',
data: data,
success: function (response) {
console.log('AJAX response received');
$(".anons-article__card-wrap").append(response);
$('#page_num').val(currentPage + 1);
console.log('New page number:', currentPage + 1);
// Считаем общее количество загруженных постов
var currentlyDisplayed = $('.anons-article__card-wrap .anons-best__card').length;
console.log('Actually displayed posts:', currentlyDisplayed);
if (currentlyDisplayed >= totalPosts) {
console.log('Hiding load more button - all posts loaded');
form.hide();
}
},
error: function (error) {
console.error('AJAX error:', error);
}
});
});
});

@ -51,4 +51,4 @@ foreach ($authors_arr as $author) {
}
$context['authors'] = $authors_arr;
Timber::render('blog_author/author-archive-page.twig', $context);
Timber::render('blog_author/author-archive.twig', $context);

@ -38,4 +38,4 @@ $author->posts = Timber::get_posts([
$context['author'] = $author;
$context['total_pages'] = ceil($author->post_count / 9);
Timber::render('blog_author/author-single-page.twig', $context);
Timber::render('blog_author/author-single.twig', $context);

@ -27,7 +27,7 @@ function get_author_posts() {
$context = Timber::context();
$context['posts'] = $remaining_posts;
Timber::render('blog_author/author-posts-list-block.twig', $context);
Timber::render('blog_author/author-posts-list.twig', $context);
wp_die();
}

@ -89,25 +89,5 @@ main{
width: max-content;
}
@media (max-width: 1200px) {
.header-navs {
gap: 12px;
}
.header-navs__link {
font-size: 14px;
}
.header-right {
gap: 4px;
}
}
@media(max-width:600px) {
.article-content h2 {
max-width: 661px;
font-size: 24px!important;
line-height: 40px;
font-weight: bold;
text-transform: uppercase;
color: var(--grey-black);
}
}

@ -0,0 +1,10 @@
@media(max-width:600px) {
.article-content h2 {
max-width: 661px;
font-size: 24px!important;
line-height: 40px;
font-weight: bold;
text-transform: uppercase;
color: var(--grey-black);
}
}

@ -0,0 +1,4 @@
/* Стили для ультрашироких экранов */
@media only screen and (min-width: 1400px) {
}

@ -0,0 +1,11 @@
@media (max-width: 1200px) {
.header-navs {
gap: 12px;
}
.header-navs__link {
font-size: 14px;
}
.header-right {
gap: 4px;
}
}

@ -1,198 +0,0 @@
// comment
let answerbtns = document.querySelectorAll('.answer-btn');
let answerbtnicons = document.querySelectorAll('.answer-btn svg');
// При загрузке страницы проверяем активные кнопки
document.addEventListener('DOMContentLoaded', function() {
// Для каждой кнопки ответов
answerbtns.forEach((answerbtn) => {
// Находим родительский контейнер, чтобы искать ответы только для этого комментария
const buttonParent = answerbtn.parentElement;
// Находим все блоки ответов для этого комментария (после текущей кнопки)
const answerBlocks = getRelatedAnswerBlocks(answerbtn);
if (answerBlocks.length === 0) return;
// Проверяем, должны ли быть ответы развернуты (если у кнопки или любого ответа есть класс active)
const shouldBeActive = answerbtn.querySelector('svg').classList.contains('active') ||
Array.from(answerBlocks).some(block => block.classList.contains('active'));
if (shouldBeActive) {
// Активируем все ответы только для этого комментария
answerBlocks.forEach(block => {
block.classList.add('active');
});
// Обновляем состояние кнопки
answerbtn.querySelector('svg').classList.add('active');
// Обновляем текст кнопки
let buttonText = answerbtn.querySelector('span');
if (buttonText) {
buttonText.textContent = 'Свернуть';
}
} else {
// Скрываем все ответы
answerBlocks.forEach(block => {
block.classList.remove('active');
});
// Обновляем состояние кнопки
answerbtn.querySelector('svg').classList.remove('active');
// Обновляем текст кнопки в зависимости от количества ответов
let buttonText = answerbtn.querySelector('span');
if (buttonText) {
const count = answerBlocks.length;
buttonText.textContent = count === 1 ? 'ответ' : 'ответа';
}
}
});
});
// Функция для получения блоков ответов, связанных с данной кнопкой
function getRelatedAnswerBlocks(answerBtn) {
// Получаем следующий блок комментариев (если он есть)
let currentElement = answerBtn;
let answerBlocks = [];
// Собираем все блоки ответов до следующего основного комментария или кнопки ответов
while ((currentElement = currentElement.nextElementSibling) !== null) {
if (currentElement.classList.contains('comment-block') && !currentElement.classList.contains('answer-block')) {
// Достигли следующего основного комментария, прерываем сбор
break;
} else if (currentElement.classList.contains('answer-btn')) {
// Достигли следующей кнопки ответов, прерываем сбор
break;
} else if (currentElement.classList.contains('answer-block')) {
// Это блок ответа, добавляем в коллекцию
answerBlocks.push(currentElement);
}
}
return answerBlocks;
}
// Обработчики нажатия на кнопки ответов
answerbtns.forEach((answerbtn) => {
answerbtn.addEventListener('click', () => {
// Получаем все блоки ответов для этого комментария
const answerBlocks = getRelatedAnswerBlocks(answerbtn);
if (answerBlocks.length === 0) return;
// Определяем, развернуты ли ответы сейчас
const isCurrentlyActive = answerbtn.querySelector('svg').classList.contains('active');
// Переключаем состояние
if (isCurrentlyActive) {
// Скрываем все ответы
answerBlocks.forEach(block => {
block.classList.remove('active');
});
// Обновляем состояние кнопки
answerbtn.querySelector('svg').classList.remove('active');
// Обновляем текст кнопки
let buttonText = answerbtn.querySelector('span');
if (buttonText) {
const count = answerBlocks.length;
buttonText.textContent = count === 1 ? 'ответ' : 'ответа';
}
} else {
// Показываем все ответы
answerBlocks.forEach(block => {
block.classList.add('active');
});
// Обновляем состояние кнопки
answerbtn.querySelector('svg').classList.add('active');
// Обновляем текст кнопки
let buttonText = answerbtn.querySelector('span');
if (buttonText) {
buttonText.textContent = 'Свернуть';
}
}
});
});
// Обработка нажатия на кнопку "Ответить" на комментарий
document.addEventListener('DOMContentLoaded', function() {
// Получаем все кнопки "Ответить" на странице
const replyButtons = document.querySelectorAll('.reply-to-comment');
// Добавляем обработчик на каждую кнопку
replyButtons.forEach(button => {
button.addEventListener('click', function() {
// Получаем ID комментария, на который отвечаем
const commentId = this.getAttribute('data-comment-id');
const postId = this.getAttribute('data-post-id');
const replyToName = this.getAttribute('data-reply-to');
// Получаем контейнер для формы ответа
const replyFormContainer = document.getElementById('reply-form-' + commentId);
// Если форма уже открыта, скрываем её
if (replyFormContainer.style.display !== 'none') {
replyFormContainer.style.display = 'none';
return;
}
// Скрываем все открытые формы ответов
document.querySelectorAll('.reply-form-container').forEach(container => {
container.style.display = 'none';
});
// Клонируем основную форму комментариев
const originalForm = document.getElementById('commentform');
if (originalForm) {
const clonedForm = originalForm.cloneNode(true);
// Изменяем атрибуты формы для ответа
clonedForm.id = 'commentform-reply-' + commentId;
// Добавляем скрытое поле с ID родительского комментария
const hiddenInput = document.createElement('input');
hiddenInput.type = 'hidden';
hiddenInput.name = 'comment_parent';
hiddenInput.value = commentId;
clonedForm.appendChild(hiddenInput);
// Изменяем заголовок формы
const formTitle = clonedForm.querySelector('.comment-reply-title');
if (formTitle) {
formTitle.textContent = 'Ответить ' + replyToName;
}
// Добавляем кнопку отмены
const cancelButton = document.createElement('button');
cancelButton.type = 'button';
cancelButton.className = 'cancel-reply-btn';
cancelButton.textContent = 'Отменить';
cancelButton.addEventListener('click', function() {
replyFormContainer.style.display = 'none';
});
// Добавляем кнопку отмены в форму
const submitContainer = clonedForm.querySelector('.form-submit');
if (submitContainer) {
submitContainer.appendChild(cancelButton);
}
// Очищаем контейнер и добавляем клонированную форму
replyFormContainer.innerHTML = '';
replyFormContainer.appendChild(clonedForm);
// Показываем форму
replyFormContainer.style.display = 'block';
// Фокусируемся на текстовой области
const textarea = clonedForm.querySelector('textarea');
if (textarea) {
textarea.focus();
}
}
});
});
});

@ -17,4 +17,4 @@ $context['blog_desc'] = get_field('blog_desc', 'options');
$context['post_count'] = wp_count_posts()->publish; // Количество опубликованных постов
$context['total_pages'] = ceil($context['post_count'] / get_option('posts_per_page')); // Общее количество страниц
Timber::render('blog/blog-archive-page.twig', $context);
Timber::render('blog/blog-archive.twig', $context);

@ -177,100 +177,4 @@
.blog-home{
padding-bottom: 4rem;
}
@media only screen and (max-width: 992px) {
.home-swp__btn {
bottom: auto;
top: 93px;
left: -10px;
width: calc(100% + 20px);
justify-content: space-between;
transform: translateX(0);
}
.home-swp__btn button {
width: 48px;
height: 48px;
border-radius: 20px;
}
.home-card {
flex-direction: column;
border-radius: 24px;
gap: 17px;
}
.home-card__img {
height: 234px;
width: 100%;
border-radius: 24px;
}
.home-card__content {
padding: 0 16px 89px;
}
.home-card__content-title {
font-size: 20px;
line-height: 24px;
margin-bottom: 15px;
}
.home-card__content-description {
font-size: 16px;
line-height: 20px;
margin-bottom: 15px;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.home-card__content-body {
gap: 7px;
}
.home-card__content-body__alerts {
gap: 7px;
}
.home-card__content-body__alerts li {
font-size: 14px;
line-height: 16px;
padding: 8px;
}
.home-card__content-body__day {
font-size: 14px;
line-height: 16px;
}
.home-card__content-body__time {
font-size: 14px;
line-height: 16px;
}
.home-card__content-body__data {
gap: 7px;
}
.home-card__content-body__data>div {
gap: 4px;
font-size: 14px;
line-height: 16px;
}
.home-card__content-body__data .main-img {
width: 32px;
height: 32px;
}
.home-card__content-body__link {
right: 50%;
bottom: 27px;
transform: translateX(50%);
width: max-content;
}
}
}

@ -0,0 +1,96 @@
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.home-swp__btn {
bottom: auto;
top: 93px;
left: -10px;
width: calc(100% + 20px);
justify-content: space-between;
transform: translateX(0);
}
.home-swp__btn button {
width: 48px;
height: 48px;
border-radius: 20px;
}
.home-card {
flex-direction: column;
border-radius: 24px;
gap: 17px;
}
.home-card__img {
height: 234px;
width: 100%;
border-radius: 24px;
}
.home-card__content {
padding: 0 16px 89px;
}
.home-card__content-title {
font-size: 20px;
line-height: 24px;
margin-bottom: 15px;
}
.home-card__content-description {
font-size: 16px;
line-height: 20px;
margin-bottom: 15px;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.home-card__content-body {
gap: 7px;
}
.home-card__content-body__alerts {
gap: 7px;
}
.home-card__content-body__alerts li {
font-size: 14px;
line-height: 16px;
padding: 8px;
}
.home-card__content-body__day {
font-size: 14px;
line-height: 16px;
}
.home-card__content-body__time {
font-size: 14px;
line-height: 16px;
}
.home-card__content-body__data {
gap: 7px;
}
.home-card__content-body__data>div {
gap: 4px;
font-size: 14px;
line-height: 16px;
}
.home-card__content-body__data .main-img {
width: 32px;
height: 32px;
}
.home-card__content-body__link {
right: 50%;
bottom: 27px;
transform: translateX(50%);
width: max-content;
}
}

@ -454,150 +454,4 @@ p.discount-description__2 {
.other-home {
padding-top: 36px !important;
}
/* comment */
@media (max-width: 992px) {
.discount {
padding: 32px 24px;
border-radius: 32px;
margin-bottom: 48px;
}
.discount-title {
font-size: 26px;
line-height: 32px;
margin-bottom: 21px;
}
.discount-bg {
display: none;
}
.discount-bg.mb {
display: inline-block;
position: static;
margin-bottom: 21px;
}
.discount-form {
flex-direction: column;
gap: 21px;
margin-bottom: 21px;
}
.discount-form img {
display: none;
}
.discount-form input {
width: 100%;
text-align: center;
}
.discount-form button {
width: 100%;
text-align: center;
}
.discount-descriptions {
display: flex;
flex-direction: column-reverse;
}
p.discount-description__2 {
font-size: 18px;
line-height: 24px;
font-weight: 500;
grid-area: 21px;
margin-bottom: 21px;
}
p.discount-description__1 {
margin-bottom: 0;
font-size: 12px;
line-height: 120%;
}
.article-home {
padding-bottom: 36px;
}
.article-home .container {
display: flex;
flex-direction: column;
}
.article-home h1 {
order: 1;
font-size: 32px;
line-height: 38px;
margin-bottom: 15px;
}
.article-home__card {
order: 2;
}
.article-home__card img {
border-radius: 32px;
}
.article-home__data {
gap: 8px 16px;
order: 3;
margin: 15px 0 0;
}
.article-home__data-alerts {
gap: 16px;
}
.article-home__data-alerts a {
padding: 6px 8px;
}
.article-content {
padding: 48px 0;
border-radius: 64px;
}
.comment .comment-block {
padding: 20px 24px;
margin-top: 28px;
}
.comment .comment-title {
padding-bottom: 20px;
}
.comment .answer-block {
margin: 10px 0 0 42px;
}
.comment .comment-user h6 {
font-size: 16px;
line-height: 24px;
}
.comment .comment-block p {
font-size: 16px;
line-height: 24px;
}
.comment .comment-btns {
gap: 14px;
}
.comment .comment-btns button {
font-size: 12px;
line-height: 16px;
}
.comment .comment-user span {
font-size: 12px;
line-height: 16px;
}
}
/* comment */

@ -0,0 +1,145 @@
@media (max-width: 992px) {
.discount {
padding: 32px 24px;
border-radius: 32px;
margin-bottom: 48px;
}
.discount-title {
font-size: 26px;
line-height: 32px;
margin-bottom: 21px;
}
.discount-bg {
display: none;
}
.discount-bg.mb {
display: inline-block;
position: static;
margin-bottom: 21px;
}
.discount-form {
flex-direction: column;
gap: 21px;
margin-bottom: 21px;
}
.discount-form img {
display: none;
}
.discount-form input {
width: 100%;
text-align: center;
}
.discount-form button {
width: 100%;
text-align: center;
}
.discount-descriptions {
display: flex;
flex-direction: column-reverse;
}
p.discount-description__2 {
font-size: 18px;
line-height: 24px;
font-weight: 500;
grid-area: 21px;
margin-bottom: 21px;
}
p.discount-description__1 {
margin-bottom: 0;
font-size: 12px;
line-height: 120%;
}
.article-home {
padding-bottom: 36px;
}
.article-home .container {
display: flex;
flex-direction: column;
}
.article-home h1 {
order: 1;
font-size: 32px;
line-height: 38px;
margin-bottom: 15px;
}
.article-home__card {
order: 2;
}
.article-home__card img {
border-radius: 32px;
}
.article-home__data {
gap: 8px 16px;
order: 3;
margin: 15px 0 0;
}
.article-home__data-alerts {
gap: 16px;
}
.article-home__data-alerts a {
padding: 6px 8px;
}
.article-content {
padding: 48px 0;
border-radius: 64px;
}
.comment .comment-block {
padding: 20px 24px;
margin-top: 28px;
}
.comment .comment-title {
padding-bottom: 20px;
}
.comment .answer-block {
margin: 10px 0 0 42px;
}
.comment .comment-user h6 {
font-size: 16px;
line-height: 24px;
}
.comment .comment-block p {
font-size: 16px;
line-height: 24px;
}
.comment .comment-btns {
gap: 14px;
}
.comment .comment-btns button {
font-size: 12px;
line-height: 16px;
}
.comment .comment-user span {
font-size: 12px;
line-height: 16px;
}
}

@ -4,4 +4,4 @@ include_component('blog', 'featured-slider');
$context = Timber::get_context();
$post = Timber::get_post();
$context['post'] = $post;
Timber::render('blog/blog-single-page.twig', $context);
Timber::render('blog/blog-single.twig', $context);

@ -1,276 +0,0 @@
/* Footer */
.footer {
background: var(--main_black);
padding: 40px 0 38px;
color: var(--main_white);
}
.footer-top {
display: flex;
align-items: stretch;
justify-content: space-between;
gap: 48px;
}
.footer-top .logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 20px;
font-weight: 500;
text-transform: uppercase;
background: var(--accent-1);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
margin-bottom: 24px;
}
.footer-content__address {
font-size: 24px;
font-weight: 500;
line-height: 32px;
margin-bottom: 32px;
}
.footer-content {
width: 100%;
}
.footer-content ul {
display: flex;
flex-direction: column;
gap: 24px;
}
.footer-content ul li {
display: flex;
flex-direction: column;
gap: 4px;
}
.footer-content ul p {
font-size: 16px;
font-weight: bold;
line-height: 20px;
}
.footer-content ul a {
font-size: 24px;
font-weight: 500;
line-height: 32px;
}
.footer-content__wrap {
display: flex;
align-items: flex-end;
justify-content: space-between;
width: 100%;
}
.footer-top__link {
display: flex;
flex-direction: column;
gap: 24px;
}
.footer-top__link .link-black {
padding: 7px 15px;
color: var(--main_white);
font-size: 24px;
line-height: 32px;
font-weight: 500;
white-space: nowrap;
border: 1px solid var(--main_white);
border-radius: 24px;
}
.footer-top__link .link-white {
width: 100%;
text-align: center;
background: var(--main_white);
color: var(--main_black);
font-size: 20px;
font-weight: 600;
line-height: 24px;
padding: 12px;
border-radius: 20px;
}
.footer-contact {
width: 364px;
flex-shrink: 0;
background: var(--accent-1);
border-radius: 24px;
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.footer-contact__title {
color: var(--main_black);
font-size: 24px;
font-weight: 500;
line-height: 32px;
}
.footer-contact__submit {
width: 100%;
text-align: center;
height: 48px;
border-radius: 16px;
background: var(--main_black);
font-size: 20px;
font-weight: 600;
line-height: 24px;
color: var(--main_white);
}
.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 17px;
margin-top: 19px;
border-top: 1px solid var(--main_white);
}
.footer-network {
display: flex;
align-items: center;
gap: 32px;
}
.footer-bottom a {
font-size: 16px;
line-height: 20px;
font-weight: 500;
color: var(--main_white);
opacity: 0.6;
text-decoration: underline;
}
/* Footer end */
.modal__aside {
position: fixed;
top: 0;
right: 0;
width: 0;
height: 100%;
overflow: hidden;
transition: width .4s ease-out;
}
.modal__item {
height: 100%;
padding: 24px;
background: var(--background-white);
position: relative;
display: none;
filter: blur(10px);
transition: filter .2s ease-out;
}
.modal__login {
max-width: 100vw;
width: 400px;
}
.modal__item.active {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.modal__close {
position: absolute;
top: 32px;
right: 24px;
width: 24px;
height: 24px;
border: none;
background: none;
}
.login_wrap {
height: 100%;
}
.social-media__icon {
width: 32px;
aspect-ratio: 1;
}
.login_btn {
margin-bottom: 24px;
}
@media only screen and (max-width: 576px) {
.footer {
padding: 24px 0 58px;
}
.footer-top {
align-items: flex-start;
text-align: left;
gap: 24px;
}
.footer-content__wrap {
align-items: flex-start;
gap: 24px;
}
.footer-content {
align-items: flex-start;
}
.footer-content .logo {
font-size: 20px;
margin-bottom: 24px;
}
.footer-content__address {
font-size: 18px;
line-height: 24px;
margin-bottom: 32px;
}
.footer-content ul {
gap: 24px;
}
.footer-content ul p {
font-size: 16px;
line-height: 20px;
}
.footer-content ul a {
font-size: 24px;
line-height: 32px;
}
.footer-top__link .link-white {
display: none;
}
.footer-contact {
width: 100%;
padding: 16px;
border-radius: 24px;
}
.footer-contact__title {
color: var(--main_white);
}
.footer-bottom {
margin-top: 0;
padding-top: 24px;
border: 0;
align-items: flex-start;
gap: 17px;
}
}

@ -205,72 +205,3 @@
.login_btn {
margin-bottom: 24px;
}
@media only screen and (max-width: 576px) {
.footer {
padding: 24px 0 58px;
}
.footer-top {
align-items: flex-start;
text-align: left;
gap: 24px;
}
.footer-content__wrap {
align-items: flex-start;
gap: 24px;
}
.footer-content {
align-items: flex-start;
}
.footer-content .logo {
font-size: 20px;
margin-bottom: 24px;
}
.footer-content__address {
font-size: 18px;
line-height: 24px;
margin-bottom: 32px;
}
.footer-content ul {
gap: 24px;
}
.footer-content ul p {
font-size: 16px;
line-height: 20px;
}
.footer-content ul a {
font-size: 24px;
line-height: 32px;
}
.footer-top__link .link-white {
display: none;
}
.footer-contact {
width: 100%;
padding: 16px;
border-radius: 24px;
}
.footer-contact__title {
color: var(--main_white);
}
.footer-bottom {
margin-top: 0;
padding-top: 24px;
border: 0;
align-items: flex-start;
gap: 17px;
}
}

@ -0,0 +1,4 @@
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
}

@ -1,314 +0,0 @@
'use strict';
(function ($) {
const metaLocale = document.querySelector('meta[property="og:locale"]');
const localeValue = metaLocale.getAttribute('content');
// Login
$('.login_popup').on('click', function(e){
e.preventDefault();
$('.login_modal').addClass('active');
});
$('.login_close').on('click', function(){
$('.login_modal').removeClass('active');
});
$('.login_back').on('click', function(){
if($(this).is('.disabled')) {
return false;
}
$('.login_wrap .step').toggleClass('active');
});
$('.login_input input').on('input keyup', function(){
$('.login_input').removeClass('error');
});
$('.js-get-code').on('click', function(){
$('.login_input').removeClass('error');
var email = $('.js-input-email input').val();
$('.sended_email').text(email);
if(email === '') {
$('.js-input-email').addClass('error');
$('.js-input-email .login_error').text(localeValue == 'en_US' ? 'Enter your email' : 'Укажите Email');
return false;
} else {
// Проверка Email
$.ajax({
type: 'POST',
url: '/wp-admin/admin-ajax.php',
data: {action: 'email_validate', email:email},
success: function(data){
if(data['status'] === 'error') {
$('.js-input-email').addClass('error');
$('.js-input-email .login_error').text(data['text']);
return false;
} else {
$('.login_wrap .step').toggleClass('active');
send_code();
}
}
});
}
});
$('.js-repeat-code').on('click', function(){
$('.login_input').removeClass('error');
send_code();
});
function send_code(){
$('.login_timer').show();
$('.js-repeat-code').hide();
$('.login_back').addClass('disabled');
// Timer
var seconds = 15;
var interval = setInterval(function() {
if (seconds > 0) {
seconds--;
$('.seconds').text(seconds);
} else {
clearInterval(interval);
$('.login_timer').hide();
$('.js-repeat-code').show();
$('.login_back').removeClass('disabled');
$('.seconds').text(15);
}
}, 1000);
//Ajax отправка кода
$.ajax({
type: 'POST',
url: '/wp-admin/admin-ajax.php',
data: {action: 'send_code', email: $('.js-input-email input').val()}
});
}
// Проверка кода и регистрация/авторизация
$('.js-input-code input').on('input keydown keyup propertychange paste cut copy change', function(){
var val = $(this).val();
var email = $('.js-input-email input').val();
if(val.length === 4) {
$.ajax({
type: 'POST',
url: '/wp-admin/admin-ajax.php',
data: {action: 'check_code', code: val, email: email},
success: function(data){
console.log(data);
if(data['status'] == 'success_reg') {
$('.login_forms').addClass('hide');
$('.login_success').removeClass('hide');
if (typeof wc_checkout_params !== 'undefined') {
location.reload()
}
}
if(data['status'] == 'success_auth') {
$('.login_forms').addClass('hide');
$('.login_auth').removeClass('hide');
if (typeof wc_checkout_params !== 'undefined') {
location.reload()
}
}
if(data['status'] == 'error') {
$('.js-input-code').addClass('error');
$('.js-input-code .login_error').text(data['text']);
}
}
});
}
});
$('.email_link_form').on('submit', function(e){
e.preventDefault();
$('.cabinet-card_linked-email .error').remove();
var data = $(this).serializeArray();
$.ajax({
type: 'POST',
url: '/wp-admin/admin-ajax.php',
data: data,
success: function(data){
if(data['error']) {
$('.cabinet-card_linked-email').append('<div class="cabinet-card__status cabinet-card__status--cancelled error">'+data['error']+'</div>');
} else {
location.reload();
}
}
});
});
})(jQuery);
function checkImage(imageSrc, good) {
var img = new Image();
img.onload = good;
img.src = imageSrc;
}
// header
toggleOpenX('.lang', '.lang__open', '.lang__list', '.lang__content', false);
toggleHeader('#pc-menu','.header__menu-block','.header__pc-menu', '.white', 'white');
toggleHeader('#phone-menu','.header__menu-block','.header__phone-menu', '.white', 'white');
// header
function initOverlay(){
// overlay
let products = document.querySelectorAll('.product__item');
products.forEach(productItem => {
let button = productItem.querySelector('.open-overlay'),
overlay = productItem.querySelector('.product-item__overlay');
if (button) {
button.onclick = function (e) {
document.querySelectorAll('.product__item').forEach(e => {
if (e.classList.contains('active')) {
e.classList.remove('active');
}
});
document.querySelectorAll('.product-item__overlay').forEach(e => {
if (e.classList.contains('active')) {
e.classList.remove('active');
}
});
productItem.classList.toggle('active');
overlay.classList.toggle('active');
}
}
})
// overlay
}
initOverlay()
function initSelect(){
// select
toggleOpenX('.select', '.select__state' , '.state__content', '.state__block', true);
let selects = document.querySelectorAll('.select');
selects.forEach(select => {
let state = select.querySelector('.select__state'),
content = select.querySelector('.state__block'),
buttons = select.querySelectorAll('.state__button');
buttons.forEach(e => {
let button = e;
e.onclick = function (event) {
event.preventDefault();
buttons.forEach(element => {
if (element.classList.contains('active')) {
element.classList.remove('active');
}
})
let text = e.textContent.trim();
state.value = text;
button.classList.add('active');
content.style.height = 0;
select.classList.remove('active');
}
})
})
// select
}
initSelect()
function toggleOpenX(mainElement, buttonElement ,heightElement, contentElement, close) {
let elements = document.querySelectorAll(mainElement);
elements.forEach(e => {
let thisMainElement = e,
thisButtonElement = e.querySelector(buttonElement),
thisHeightElement = e.querySelector(heightElement),
thisContentElement = e.querySelector(contentElement);
thisButtonElement.onclick = function (e) {
let height = thisHeightElement.clientHeight;
if (close == true && !thisMainElement.classList.contains('active')) {
elements.forEach(e => {
if (e.classList.contains('active')) {
e.classList.remove('active');
e.querySelector(contentElement).style.height = null
}
})
}
if (!thisMainElement.classList.contains('active')) {
thisContentElement.style.height = `${height}px`;
thisMainElement.classList.add('active');
}else{
thisContentElement.style.height = null;
thisMainElement.classList.remove('active');
}
}
});
}
var menu_opened = false;
function toggleHeader(button, content, blockheight, removeBlock, removeClass) {
let thisButton = document.querySelector(button),
thisContent = document.querySelector(content),
thisRemoveBlock = document.querySelector(removeBlock) || '',
thisBlockheight = document.querySelector(blockheight);
thisButton.onclick = function () {
let height = thisBlockheight.clientHeight;
if (!thisContent.classList.contains('open')) {
thisContent.style.height = `${height}px`;
thisContent.classList .add('open');
if (removeBlock) {
thisRemoveBlock.classList.remove(removeClass);
}
}else{
thisContent.style.height = null;
thisContent.classList.remove('open');
if (removeBlock) {
if (window.Y <= 25) {
thisRemoveBlock.classList.add(removeClass);
}
}
}
menu_opened = !menu_opened;
}
}
if (document.querySelector('.header').classList.contains('white')) {
window.addEventListener("scroll", function (e) {
let header = document.querySelector('.header');
let scroll = window.scrollY;
if(!menu_opened){
if (scroll >= 25) {
header.classList.remove('white')
}else{
header.classList.add('white')
}
}
});
}
// scroll

@ -0,0 +1,143 @@
// Функция для показа модальных окон
function showModal(modalClass) {
const modal = document.querySelector('.' + modalClass);
if (modal) {
modal.style.display = 'flex';
}
}
// Функция для закрытия модальных окон
function closeModals() {
const modals = document.querySelectorAll('.mform');
modals.forEach(modal => {
modal.style.display = 'none';
});
}
// Инициализация после загрузки DOM
document.addEventListener('DOMContentLoaded', function() {
// Обработчики для кнопок закрытия
const closeButtons = document.querySelectorAll('.close-button');
closeButtons.forEach(button => {
button.addEventListener('click', function() {
closeModals();
});
});
// Закрытие при клике вне контента
window.addEventListener('click', function(event) {
const modals = document.querySelectorAll('.mform');
modals.forEach(modal => {
if (event.target === modal) {
modal.style.display = 'none';
}
});
});
});
// Закрытие при клике вне контента
window.addEventListener('click', function(event) {
const modals = document.querySelectorAll('.modal-success, .modal-offer');
modals.forEach(modal => {
if (event.target === modal) {
modal.style.display = 'none';
}
});
});
jQuery(document).ready(function($) {
$('.form-process').submit(function(event) {
event.preventDefault();
let validate = validateForm(this);
if (validate){
action = $(this).attr('action')
let formData = $(this).serialize();
$.ajax({
type: 'POST',
url: '/wp-admin/admin-ajax.php',
data: {
action: action,
formData: formData
},
success: function(response) {
closeModals()
showModal('mform-success')
}
});
}
});
});
const metaLocale = document.querySelector('meta[property="og:locale"]');
const localeValue = metaLocale.getAttribute('content');
// Функция валидации формы
function validateForm(form) {
// Очищаем предыдущие сообщения об ошибках внутри этой формы
clearErrorMessages(form);
let validated = true
// Валидация поля имени
const nameInput = form.querySelector('input[name="name"]');
if (nameInput && !nameInput.value.trim()) {
if(localeValue == 'en_US'){
showError(nameInput, 'The name is requeried field');
}
if(localeValue == 'ru_RU'){
showError(nameInput, 'Поле имени обязательно для заполнения.');
}
validated = false
}
// Валидация поля email
const emailInput = form.querySelector('input[name="email"]');
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
if (emailInput && !emailPattern.test(emailInput.value.trim())) {
if(localeValue == 'en_US'){
showError(emailInput, 'Email is incorrect.');
}
if(localeValue == 'ru_RU'){
showError(emailInput, 'Введите корректный email.');
}
validated = false
}
// Валидация поля телефона
const phoneInput = form.querySelector('input[name="phone"]');
const phonePattern = /^\+?\d{10,15}$/;
if (phoneInput && !phonePattern.test(phoneInput.value.trim())) {
if(localeValue == 'en_US'){
showError(phoneInput, 'The phone is incorrect.');
}
if(localeValue == 'ru_RU'){
showError(phoneInput, 'Введите корректный номер телефона.');
}
validated = false
}
return validated
}
// Функция для отображения сообщения об ошибке
function showError(input, message) {
const errorMessage = document.createElement('div');
errorMessage.className = 'error-message';
errorMessage.textContent = message;
input.insertAdjacentElement('afterend', errorMessage);
}
// Функция для очистки сообщений об ошибках внутри конкретной формы
function clearErrorMessages(form) {
const errorMessages = form.querySelectorAll('.error-message');
errorMessages.forEach(errorMessage => {
errorMessage.remove();
});
}

File diff suppressed because one or more lines are too long

@ -763,48 +763,4 @@ width: 0px;
#telegram-widget-container {
text-align: center;
}
@media (max-width: 1200px) {
.header-navs {
gap: 12px;
}
.header-navs__link {
font-size: 14px;
}
.header-right {
gap: 4px;
}
}
@media only screen and (max-width: 992px) {
.header-navs {
display: none;
}
.header-container {
height: 56px;
padding: 0;
}
.header-bars {
display: flex;
align-items: center;
justify-content: center;
}
.header-logo {
font-size: 16px;
line-height: 20px;
gap: 8px;
}
.header-logo img {
width: 31px;
flex-shrink: 0;
}
.header-lang {
display: none;
}
}
}

@ -0,0 +1,32 @@
/* Стили для планшетов */
@media only screen and (max-width: 992px) {
.header-navs {
display: none;
}
.header-container {
height: 56px;
padding: 0;
}
.header-bars {
display: flex;
align-items: center;
justify-content: center;
}
.header-logo {
font-size: 16px;
line-height: 20px;
gap: 8px;
}
.header-logo img {
width: 31px;
flex-shrink: 0;
}
.header-lang {
display: none;
}
}

@ -0,0 +1,4 @@
/* Стили для ультрашироких экранов */
@media only screen and (min-width: 1400px) {
}

@ -0,0 +1,11 @@
@media (max-width: 1200px) {
.header-navs {
gap: 12px;
}
.header-navs__link {
font-size: 14px;
}
.header-right {
gap: 4px;
}
}

@ -1,810 +0,0 @@
.main-menu{
display: flex;
align-items: center;
list-style-type: none;
margin-bottom: 0;
}
.main-menu li{
margin-bottom: 0;
}
.lang p{
margin-bottom: 0;
}
.main-menu__item{
margin-left: 24px;
transition: opacity .2s ease-out;
}
.main-menu__item:first-child{
margin-left: 0;
}
.main-menu__item:hover{
opacity: .8;
background: #f2f2f2;
border-radius: 24px;
}
.header.white .main-menu__item:hover .main-menu__link{
color: #000
}
.main-menu__item:active{
opacity: 1;
}
.main-menu__link{
display: block;
padding: 8px 12px;
font-family: var(--font-family);
font-weight: 700;
font-size: 16px;
line-height: 125%;
color: #000
text-decoration: none;
transition: color .2s ease-out;
}
.main-menu__button{
padding: 8px 32px 8px 12px;
font-family: var(--font-family);
font-weight: 700;
font-size: 16px;
line-height: 125%;
color: #000
border: none;
border-radius: 24px;
background: var(--gradient-turquoise);
position: relative;
}
.main-menu__button::before{
content: '';
position: absolute;
top: 14px;
right: 14px;
width: 13px;
height: 8px;
background-image: url(../img/arrow-black.svg);
background-repeat: no-repeat;
background-size: contain;
}
/* lang*/
.lang{
position: relative;
}
.lang__open{
padding: 12px 15px;
width: 74px;
background: none;
border: none;
display: flex;
align-items: center;
transition: opacity .2s ease-out;
}
.lang__open:hover{
opacity: .8;
}
.lang-open p{
font-family: var(--font-family);
font-weight: 700;
font-size: 16px;
line-height: 125%;
text-align: start;
color: #000
}
.lang-open__arrow{
margin-left: 7.25px;
display: flex;
justify-content: center;
align-items: center;
}
.lang-open__black{
}
.lang-open__white{
display: none;
}
.lang__content{
position: absolute;
top: 33px;
left: -13px;
height: 0;
border-radius: 6px;
transition: height .2s ease-out;
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 0 2px 0 rgba(0, 0, 0, 0.2);
overflow: hidden;
background-color: #fff;
z-index: 100;
}
.lang__list{
width: 104px;
padding: 8px;
list-style-type: none;
}
.lang-item{
margin-top: 8px;
}
.lang-item:first-child{
margin-top: 0;
}
.lang-item a{
display: block;
width: 100%;
text-transform: uppercase;
padding: 4px;
border-radius: 6px;
font-family: var(--font-family);
font-weight: 400;
font-size: 20px;
line-height: 120%;
color: var(--text-dark);
text-decoration: none;
position: relative;
transition: background-color .2s ease-out;
}
.lang-item a:hover,
.lang-item.current-lang a{
background-color: var(--background-grey);
}
.lang-item.current-lang a::before{
content: '';
position: absolute;
top: 10px;
right: 8px;
width: 16px;
height: 12px;
background-image: url(../img/arrow-selected.svg);
}
/* lang */
/* mini-profile */
.mini-profile{
display: flex;
align-items: center;
}
.mini-profile__item{
margin-left: 8px;
}
.mini-profile__item:first-child{
margin-left: 0;
}
.mini-profile__button{
display: block;
padding: 8px;
display: flex;
justify-content: center;
align-items: center;
background: none;
border: none;
transition: opacity .2s ease-out;
}
.mini-profile__button:hover{
opacity: .8;
}
.mini-profile__icon{
width: 24px;
aspect-ratio: 1;
}
.mini-profile__icon.white{
display: none;
}
/* mini-profile */
/* header start */
.header{
position: relative;
background-color: #fff;
position: fixed;
left: 0;
top: 0;
right: 0;
z-index: 200;
}
.header::after{
content: '';
position: absolute;
left: auto;
right: auto;
bottom: 0;
width: 100%;
height: 1px;
background: var(--text-3);
}
.header__content{
height: 72px;
padding: 14px 24px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 101;
}
.header__open-menu{
display: none;
width: 24px;
aspect-ratio: 1;
position: relative;
border: none;
background: none;
}
.header__open-menu::before{
content: '';
position: absolute;
top: 8px;
left: 4px;
width: 16px;
height: 2px;
background: #000;
border-radius: 1px;
}
.header__open-menu::after{
content: '';
position: absolute;
left: 4px;
bottom: 8px;
width: 16px;
height: 2px;
background: #000;
border-radius: 1px;
}
.header__logo{
width: 182px;
height: 40px;
}
.header__logo-black,
.header__logo-white{
width: 100%;
height: 100%;
}
.header__logo-white{
display: none;
}
.header__menu-block{
position: absolute;
top: 56px;
left: 0;
width: 100%;
height: 0;
overflow: hidden;
transition: height .2s ease-out;
background-color: #fff;
z-index: 100;
}
.header__pc-menu{
padding: 40px 46px;
display: flex;
justify-content: center;
position: relative;
}
.header__pc-menu::before{
content: '';
position: absolute;
bottom: 0;
left: 46px;
width: 330px;
height: 248px;
background-image: url(../img/cat.png);
background-repeat: no-repeat;
}
.header__pc-menu::after{
content: '';
position: absolute;
bottom: 0;
right: 46px;
width: 330px;
height: 248px;
background-image: url(../img/dog.png);
background-repeat: no-repeat;
}
.header-pc-menu__content{
width: 600px;
display: flex;
justify-content: space-between;
}
.header-pc-menu__item{
}
.header-pc-menu__title{
font-family: var(--font-family);
font-weight: 700;
font-size: 26px;
line-height: 123%;
text-transform: uppercase;
color: #000
text-decoration: none;
}
.header-pc-menu__list{
margin-top: 16px;
list-style-type: none;
padding-left: 0;
}
.header-pc-menu__list-li{
margin-top: 25px;
margin-bottom: 0;
}
.header-pc-menu__list-li:first-child{
margin-top: 0;
}
.header-pc-menu__list-li a{
font-family: var(--font-family);
font-weight: 600;
font-size: 20px;
line-height: 120%;
color: var(--text-0);
text-decoration: none;
}
.header__phone-menu{
display: none;
padding: 24px 16px;
height: calc(100vh - 56px);
overflow-x: auto;
}
.header-phone-menu__item{
padding: 16px 0;
border-top: 1px solid #f4f1f0;
border-bottom: 1px solid #f4f1f0;
display: flex;
flex-direction: column;
}
.header-phone-menu__item:first-child{
border-top: 0;
}
.header-phone-menu__item:last-child{
border-bottom: 0;
}
.header-phone-menu__title{
font-family: var(--font-family);
font-weight: 700;
font-size: 20px;
line-height: 120%;
color: #000
text-decoration: none;
}
.header-phone-menu__title--gradient{
background: var(--gradient-blue);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.header-phone-menu__category{
margin-top: 16px;
font-family: var(--font-family);
font-weight: 500;
font-size: 18px;
line-height: 133%;
color: #000
text-decoration: none;
}
.header-phone-menu__list{
margin-top: 24px;
padding-left: 32px;
list-style-type: none;
}
.header-phone-menu__list-item{
margin-top: 16px;
}
.header-phone-menu__list-item:first-child{
margin-top: 0;
}
.header-phone-menu__list-item a{
font-family: var(--font-family);
font-weight: 500;
font-size: 16px;
line-height: 125%;
color: #121212;
color: #000
text-decoration: none;
}
.header.white{
background: none;
}
.header.white .header__logo-black{
display: none;
}
.header.white .header__logo-white{
display: block;
}
.header.white .main-menu__link{
color: #fff;
}
.header.white .main-menu__button{
background: #fff;
}
.header.white .lang__open{
color: #fff;
}
.header.white::after{
background: #fff;
}
.header.white .lang-open__black{
display: none;
}
.header.white .lang-open__white{
display: block;
}
.header.white .mini-profile__icon.white{
display: block;
}
.header.white .mini-profile__icon.black{
display: none;
}
.header.white .header__open-menu::before,
.header.white .header__open-menu::after{
background: #fff;
}
.header__phone-menu::-webkit-scrollbar {
width: 0px;
}
.modal__login {
width: 412px;
}
.login_back {
position: absolute;
top: 24px;
left: 24px;
cursor: pointer;
}
.login_wrap {
height: 100%;
}
.login_wrap.hide {
display: none;
}
.login_inner {
display: none;
margin-top: 128px;
}
.login_inner.active {
display: block;
}
.login_title {
color: #121212;
font-size: 24px;
line-height: 28px;
text-transform: uppercase;
}
.login_subtitle {
color: #575775;
font-size: 20px;
line-height: 24px;
margin-top: 16px;
}
.login_subtitle span {
display: block;
margin-top: 8px;
}
.login_input {
margin-top: 40px;
}
.login_input.error input {
border-color: #FA0505;
}
.login_error {
font-size: 12px;
line-height: 16px;
color: #FA0505;
display: none;
}
.login_input.error .login_error {
display: block;
}
.login_input input {
border: 1px solid #999999;
color: #999999;
border-radius: 20px;
padding: 12px 16px;
width: 100%;
font-size: 20px;
line-height: 24px;
}
.login_btn {
padding: 12px 24px;
border-radius: 20px;
display: block;
width: 100%;
height: 54px;
text-transform: none;
font-size: 20px;
line-height: 24px;
text-align: center;
}
.login_btn.btn_gradient {
margin-top: 24px;
background: radial-gradient(100% 174.56% at 100% 0%, #7AD9E7 0%, #7EE7E1 25%, #B5E4B4 80%, #D7EEAA 100%);
}
.login_btn.account_link {
background: #121212;
color: #fff;
}
.login_privacy {
font-size: 12px;
line-height: 16px;
color: #333333;
position: absolute;
bottom: 24px;
left: 24px;
right: 24px;
}
.login_privacy a {
color: #333333;
text-decoration: underline;
}
.login_inner.step_2 .login_subtitle,
.login_success .login_subtitle,
.login_auth .login_subtitle {
color: #121212;
}
.login_timer {
font-size: 20px;
line-height: 24px;
margin-top: 24px;
color: #121212;
}
.js-repeat-code {
display: none;
}
.login_success img {
margin: 40px 0;
}
/*
.wptelegram-login-output-wrap.container {
position: relative;
}
.wptelegram-login-output-wrap.container:after {
content: 'Войти через Telegram';
position: absolute;
left: 0;
background: radial-gradient(100% 174.56% at 100% 0%, #7AD9E7 0%, #7EE7E1 25%, #B5E4B4 80%, #D7EEAA 100%);
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 54px;
top: 0;
border-radius: 20px;
font-weight: var(--btn-font-weight);
font-family: var(--btn-font-family);
font-style: var(--btn-font-style);
font-size: 20px;
line-height: 24px;
cursor: pointer;
}
*/
.wptelegram-login-output-wrap {
display: flex;
margin-top: 15px;
justify-content: center;
}
@media(max-width: 480px) {
.modal__login {
width: 100%;
}
.login_title {
font-size: 19px;
line-height: 24px;
}
}
/* header end */
/* Стили для планшетов */
@media only screen and (max-width: 1200px) {
/* header */
.main-menu{
display: none;
}
.header__open-menu{
display: block;
}
.lang{
display: none;
}
.header__logo{
width: 136px;
height: 29px;
}
.header__content{
height: auto;
padding: 8px 16px;
}
.mini-profile__item:nth-child(2){
margin-left: 0;
}
.header::after{
left: 0;
width: 100%;
}
.header__pc-menu{
display: none;
}
.header__phone-menu{
display: block;
}
.header__menu-block{
top: 36px;
}
.header__content::after{
left: 0;
right: 0;
width: 100%;
}
/* header */
}
@media only screen and (max-width: 720px) {
}
.mini-profile__button--counter {
display: flex
;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 2px;
position: absolute;
background: var(--gradient-turquoise);
border-radius: 10px;
width: 16px;
height: 16px;
border-radius: 50%;
right: 3px;
bottom: 2px;
font-style: normal;
font-weight: 700;
font-size: 9px;
line-height: 16px;
color: #121212;
}
.mini-profile__button--counter.disabled{
display: none;
}
.mini-profile__button{
position: relative;
}
#telegram-widget-container {
text-align: center;
}
@media (max-width: 1200px) {
.header-navs {
gap: 12px;
}
.header-navs__link {
font-size: 14px;
}
.header-right {
gap: 4px;
}
}
@media only screen and (max-width: 992px) {
.header-navs {
display: none;
}
.header-container {
height: 56px;
padding: 0;
}
.header-bars {
display: flex;
align-items: center;
justify-content: center;
}
.header-logo {
font-size: 16px;
line-height: 20px;
gap: 8px;
}
.header-logo img {
width: 31px;
flex-shrink: 0;
}
.header-lang {
display: none;
}
}

@ -1,735 +0,0 @@
/**
* Swiper 11.0.5
* Most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* Copyright 2014-2023 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: November 22, 2023
*/
/* FONT_START */
@font-face {
font-family: 'swiper-icons';
src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');
font-weight: 400;
font-style: normal;
}
/* FONT_END */
:root {
--swiper-theme-color: #007aff;
/*
--swiper-preloader-color: var(--swiper-theme-color);
--swiper-wrapper-transition-timing-function: initial;
*/
}
:host {
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
z-index: 1;
}
.swiper {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
list-style: none;
padding: 0;
/* Fix of Webkit flickering */
z-index: 1;
display: block;
}
.swiper-vertical > .swiper-wrapper {
flex-direction: column;
}
.swiper-wrapper {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
transition-property: transform;
transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
box-sizing: content-box;
}
.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
transform: translate3d(0px, 0, 0);
}
.swiper-horizontal {
touch-action: pan-y;
}
.swiper-vertical {
touch-action: pan-x;
}
.swiper-slide {
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
transition-property: transform;
display: block;
}
.swiper-slide-invisible-blank {
visibility: hidden;
}
/* Auto Height */
.swiper-autoheight,
.swiper-autoheight .swiper-slide {
height: auto;
}
.swiper-autoheight .swiper-wrapper {
align-items: flex-start;
transition-property: transform, height;
}
.swiper-backface-hidden .swiper-slide {
transform: translateZ(0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
/* 3D Effects */
.swiper-3d.swiper-css-mode .swiper-wrapper {
perspective: 1200px;
}
.swiper-3d .swiper-wrapper {
transform-style: preserve-3d;
}
.swiper-3d {
perspective: 1200px;
}
.swiper-3d .swiper-slide,
.swiper-3d .swiper-cube-shadow {
transform-style: preserve-3d;
}
/* CSS Mode */
.swiper-css-mode > .swiper-wrapper {
overflow: auto;
scrollbar-width: none;
/* For Firefox */
-ms-overflow-style: none;
/* For Internet Explorer and Edge */
}
.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
display: none;
}
.swiper-css-mode > .swiper-wrapper > .swiper-slide {
scroll-snap-align: start start;
}
.swiper-css-mode.swiper-horizontal > .swiper-wrapper {
scroll-snap-type: x mandatory;
}
.swiper-css-mode.swiper-vertical > .swiper-wrapper {
scroll-snap-type: y mandatory;
}
.swiper-css-mode.swiper-free-mode > .swiper-wrapper {
scroll-snap-type: none;
}
.swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {
scroll-snap-align: none;
}
.swiper-css-mode.swiper-centered > .swiper-wrapper::before {
content: '';
flex-shrink: 0;
order: 9999;
}
.swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {
scroll-snap-align: center center;
scroll-snap-stop: always;
}
.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
margin-inline-start: var(--swiper-centered-offset-before);
}
.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
height: 100%;
min-height: 1px;
width: var(--swiper-centered-offset-after);
}
.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
margin-block-start: var(--swiper-centered-offset-before);
}
.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {
width: 100%;
min-width: 1px;
height: var(--swiper-centered-offset-after);
}
/* Slide styles start */
/* 3D Shadows */
.swiper-3d .swiper-slide-shadow,
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top,
.swiper-3d .swiper-slide-shadow-bottom,
.swiper-3d .swiper-slide-shadow,
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right,
.swiper-3d .swiper-slide-shadow-top,
.swiper-3d .swiper-slide-shadow-bottom {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
}
.swiper-3d .swiper-slide-shadow {
background: rgba(0, 0, 0, 0.15);
}
.swiper-3d .swiper-slide-shadow-left {
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-right {
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-top {
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-bottom {
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-lazy-preloader {
width: 42px;
height: 42px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -21px;
margin-top: -21px;
z-index: 10;
transform-origin: 50%;
box-sizing: border-box;
border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
border-radius: 50%;
border-top-color: transparent;
}
.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,
.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {
animation: swiper-preloader-spin 1s infinite linear;
}
.swiper-lazy-preloader-white {
--swiper-preloader-color: #fff;
}
.swiper-lazy-preloader-black {
--swiper-preloader-color: #000;
}
@keyframes swiper-preloader-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Slide styles end */
.swiper-virtual .swiper-slide {
-webkit-backface-visibility: hidden;
transform: translateZ(0);
}
.swiper-virtual.swiper-css-mode .swiper-wrapper::after {
content: '';
position: absolute;
left: 0;
top: 0;
pointer-events: none;
}
.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after {
height: 1px;
width: var(--swiper-virtual-size);
}
.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after {
width: 1px;
height: var(--swiper-virtual-size);
}
:root {
--swiper-navigation-size: 44px;
/*
--swiper-navigation-top-offset: 50%;
--swiper-navigation-sides-offset: 10px;
--swiper-navigation-color: var(--swiper-theme-color);
*/
}
.swiper-button-prev,
.swiper-button-next {
position: absolute;
top: var(--swiper-navigation-top-offset, 50%);
width: calc(var(--swiper-navigation-size) / 44 * 27);
height: var(--swiper-navigation-size);
margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
z-index: 10;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--swiper-navigation-color, var(--swiper-theme-color));
}
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
opacity: 0.35;
cursor: auto;
pointer-events: none;
}
.swiper-button-prev.swiper-button-hidden,
.swiper-button-next.swiper-button-hidden {
opacity: 0;
cursor: auto;
pointer-events: none;
}
.swiper-navigation-disabled .swiper-button-prev,
.swiper-navigation-disabled .swiper-button-next {
display: none !important;
}
.swiper-button-prev svg,
.swiper-button-next svg {
width: 100%;
height: 100%;
object-fit: contain;
transform-origin: center;
}
.swiper-rtl .swiper-button-prev svg,
.swiper-rtl .swiper-button-next svg {
transform: rotate(180deg);
}
.swiper-button-prev,
.swiper-rtl .swiper-button-next {
left: var(--swiper-navigation-sides-offset, 10px);
right: auto;
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
right: var(--swiper-navigation-sides-offset, 10px);
left: auto;
}
.swiper-button-lock {
display: none;
}
/* Navigation font start */
.swiper-button-prev:after,
.swiper-button-next:after {
font-family: swiper-icons;
font-size: var(--swiper-navigation-size);
text-transform: none !important;
letter-spacing: 0;
font-variant: initial;
line-height: 1;
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
content: 'prev';
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev {
right: var(--swiper-navigation-sides-offset, 10px);
left: auto;
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
content: 'next';
}
/* Navigation font end */
:root {
/*
--swiper-pagination-color: var(--swiper-theme-color);
--swiper-pagination-left: auto;
--swiper-pagination-right: 8px;
--swiper-pagination-bottom: 8px;
--swiper-pagination-top: auto;
--swiper-pagination-fraction-color: inherit;
--swiper-pagination-progressbar-bg-color: rgba(0,0,0,0.25);
--swiper-pagination-progressbar-size: 4px;
--swiper-pagination-bullet-size: 8px;
--swiper-pagination-bullet-width: 8px;
--swiper-pagination-bullet-height: 8px;
--swiper-pagination-bullet-border-radius: 50%;
--swiper-pagination-bullet-inactive-color: #000;
--swiper-pagination-bullet-inactive-opacity: 0.2;
--swiper-pagination-bullet-opacity: 1;
--swiper-pagination-bullet-horizontal-gap: 4px;
--swiper-pagination-bullet-vertical-gap: 6px;
*/
}
.swiper-pagination {
position: absolute;
text-align: center;
transition: 300ms opacity;
transform: translate3d(0, 0, 0);
z-index: 10;
}
.swiper-pagination.swiper-pagination-hidden {
opacity: 0;
}
.swiper-pagination-disabled > .swiper-pagination,
.swiper-pagination.swiper-pagination-disabled {
display: none !important;
}
/* Common Styles */
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
bottom: var(--swiper-pagination-bottom, 8px);
top: var(--swiper-pagination-top, auto);
left: 0;
width: 100%;
}
/* Bullets */
.swiper-pagination-bullets-dynamic {
overflow: hidden;
font-size: 0;
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transform: scale(0.33);
position: relative;
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
transform: scale(1);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
transform: scale(1);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
transform: scale(0.66);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
transform: scale(0.33);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
transform: scale(0.66);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
transform: scale(0.33);
}
.swiper-pagination-bullet {
width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
display: inline-block;
border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
background: var(--swiper-pagination-bullet-inactive-color, #000);
opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
}
button.swiper-pagination-bullet {
border: none;
margin: 0;
padding: 0;
box-shadow: none;
-webkit-appearance: none;
appearance: none;
}
.swiper-pagination-clickable .swiper-pagination-bullet {
cursor: pointer;
}
.swiper-pagination-bullet:only-child {
display: none !important;
}
.swiper-pagination-bullet-active {
opacity: var(--swiper-pagination-bullet-opacity, 1);
background: var(--swiper-pagination-color, var(--swiper-theme-color));
}
.swiper-vertical > .swiper-pagination-bullets,
.swiper-pagination-vertical.swiper-pagination-bullets {
right: var(--swiper-pagination-right, 8px);
left: var(--swiper-pagination-left, auto);
top: 50%;
transform: translate3d(0px, -50%, 0);
}
.swiper-vertical > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet {
margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
display: block;
}
.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
top: 50%;
transform: translateY(-50%);
width: 8px;
}
.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
display: inline-block;
transition: 200ms transform,
200ms top;
}
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
}
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
}
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transition: 200ms transform,
200ms left;
}
.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
transition: 200ms transform,
200ms right;
}
/* Fraction */
.swiper-pagination-fraction {
color: var(--swiper-pagination-fraction-color, inherit);
}
/* Progress */
.swiper-pagination-progressbar {
background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));
position: absolute;
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: var(--swiper-pagination-color, var(--swiper-theme-color));
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
transform: scale(0);
transform-origin: left top;
}
.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
transform-origin: right top;
}
.swiper-horizontal > .swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-horizontal,
.swiper-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
width: 100%;
height: var(--swiper-pagination-progressbar-size, 4px);
left: 0;
top: 0;
}
.swiper-vertical > .swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-vertical,
.swiper-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
width: var(--swiper-pagination-progressbar-size, 4px);
height: 100%;
left: 0;
top: 0;
}
.swiper-pagination-lock {
display: none;
}
:root {
/*
--swiper-scrollbar-border-radius: 10px;
--swiper-scrollbar-top: auto;
--swiper-scrollbar-bottom: 4px;
--swiper-scrollbar-left: auto;
--swiper-scrollbar-right: 4px;
--swiper-scrollbar-sides-offset: 1%;
--swiper-scrollbar-bg-color: rgba(0, 0, 0, 0.1);
--swiper-scrollbar-drag-bg-color: rgba(0, 0, 0, 0.5);
--swiper-scrollbar-size: 4px;
*/
}
.swiper-scrollbar {
border-radius: var(--swiper-scrollbar-border-radius, 10px);
position: relative;
touch-action: none;
background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1));
}
.swiper-scrollbar-disabled > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-disabled {
display: none !important;
}
.swiper-horizontal > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
position: absolute;
left: var(--swiper-scrollbar-sides-offset, 1%);
bottom: var(--swiper-scrollbar-bottom, 4px);
top: var(--swiper-scrollbar-top, auto);
z-index: 50;
height: var(--swiper-scrollbar-size, 4px);
width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%));
}
.swiper-vertical > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-vertical {
position: absolute;
left: var(--swiper-scrollbar-left, auto);
right: var(--swiper-scrollbar-right, 4px);
top: var(--swiper-scrollbar-sides-offset, 1%);
z-index: 50;
width: var(--swiper-scrollbar-size, 4px);
height: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%));
}
.swiper-scrollbar-drag {
height: 100%;
width: 100%;
position: relative;
background: var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));
border-radius: var(--swiper-scrollbar-border-radius, 10px);
left: 0;
top: 0;
}
.swiper-scrollbar-cursor-drag {
cursor: move;
}
.swiper-scrollbar-lock {
display: none;
}
/* Zoom container styles start */
.swiper-zoom-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.swiper-zoom-container > img,
.swiper-zoom-container > svg,
.swiper-zoom-container > canvas {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* Zoom container styles end */
.swiper-slide-zoomed {
cursor: move;
touch-action: none;
}
/* a11y */
.swiper .swiper-notification {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
opacity: 0;
z-index: -1000;
}
.swiper-free-mode > .swiper-wrapper {
transition-timing-function: ease-out;
margin: 0 auto;
}
.swiper-grid > .swiper-wrapper {
flex-wrap: wrap;
}
.swiper-grid-column > .swiper-wrapper {
flex-wrap: wrap;
flex-direction: column;
}
.swiper-fade.swiper-free-mode .swiper-slide {
transition-timing-function: ease-out;
}
.swiper-fade .swiper-slide {
pointer-events: none;
transition-property: opacity;
}
.swiper-fade .swiper-slide .swiper-slide {
pointer-events: none;
}
.swiper-fade .swiper-slide-active {
pointer-events: auto;
}
.swiper-fade .swiper-slide-active .swiper-slide-active {
pointer-events: auto;
}
.swiper-cube {
overflow: visible;
}
.swiper-cube .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1;
visibility: hidden;
transform-origin: 0 0;
width: 100%;
height: 100%;
}
.swiper-cube .swiper-slide .swiper-slide {
pointer-events: none;
}
.swiper-cube.swiper-rtl .swiper-slide {
transform-origin: 100% 0;
}
.swiper-cube .swiper-slide-active,
.swiper-cube .swiper-slide-active .swiper-slide-active {
pointer-events: auto;
}
.swiper-cube .swiper-slide-active,
.swiper-cube .swiper-slide-next,
.swiper-cube .swiper-slide-prev {
pointer-events: auto;
visibility: visible;
}
.swiper-cube .swiper-cube-shadow {
position: absolute;
left: 0;
bottom: 0px;
width: 100%;
height: 100%;
opacity: 0.6;
z-index: 0;
}
.swiper-cube .swiper-cube-shadow:before {
content: '';
background: #000;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
filter: blur(50px);
}
.swiper-cube .swiper-slide-next + .swiper-slide {
pointer-events: auto;
visibility: visible;
}
/* Cube slide shadows start */
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,
.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
/* Cube slide shadows end */
.swiper-flip {
overflow: visible;
}
.swiper-flip .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1;
}
.swiper-flip .swiper-slide .swiper-slide {
pointer-events: none;
}
.swiper-flip .swiper-slide-active,
.swiper-flip .swiper-slide-active .swiper-slide-active {
pointer-events: auto;
}
/* Flip slide shadows start */
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,
.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
/* Flip slide shadows end */
.swiper-creative .swiper-slide {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
overflow: hidden;
transition-property: transform, opacity, height;
}
.swiper-cards {
overflow: visible;
}
.swiper-cards .swiper-slide {
transform-origin: center bottom;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
overflow: hidden;
}

File diff suppressed because one or more lines are too long

@ -1,116 +0,0 @@
// modal
modalOpen('.button--filter', '.modal__filter');
modalOpen('.basket-open', '.modal__basket');
modalOpen('.open-to-know', '.modal__to-know');
modalOpen('.login-open', '.modal__login');
modalClose('.modal__close');
let modal = document.querySelector('.modal');
modal.onclick = function (event) {
let target = event.target;
if (target.classList.contains('modal')) {
closeAllModals();
}
}
// function
function modalOpen(buttonElement, contentElement){
let modal = document.querySelector('.modal'),
aside = document.querySelector('.modal__aside'),
elements = document.querySelectorAll(buttonElement),
device = window.screen.width,
body = document.querySelector('body');
elements.forEach(e => {
let thisContentElement = document.querySelector(contentElement);
e.onclick = function () {
body.classList.add('overflow-hidden');
modal.classList.add('active');
thisContentElement.classList.add('active');
let width = thisContentElement.clientWidth;
if (width < 400){
width = 400
}
setTimeout(() => {
if (device <= 720) {
aside.style.width = `${device}px`;
thisContentElement.style.opacity = 1;
thisContentElement.style.filter = 'blur(0px)';
}else{
aside.style.width = `${width}px`;
thisContentElement.style.opacity = 1;
thisContentElement.style.filter = 'blur(0px)';
}
}, 10);
}
})
}
function closeAllModals() {
let modal = document.querySelector('.modal'),
aside = document.querySelector('.modal__aside'),
asideItems = document.querySelectorAll('.modal__item'),
body = document.querySelector('body');
aside.style.width = '0px';
body.classList.remove('overflow-hidden');
asideItems.forEach(item => {
if (item.classList.contains('active')) {
item.style.opacity = 0;
item.style.filter = 'blur(10px)';
}
});
setTimeout(() => {
asideItems.forEach(item => {
item.classList.remove('active');
});
modal.classList.remove('active');
}, 300);
}
function modalClose(buttonElement) {
let elements = document.querySelectorAll(buttonElement);
elements.forEach(e => {
e.onclick = closeAllModals;
});
}
// resize
window.addEventListener('resize', (e) => {
let width = window.screen.width;
// media
modalOpen('.button--filter', '.modal__filter');
modalOpen('.basket-open', '.modal__basket');
modalOpen('.open-to-know', '.modal__to-know');
modalOpen('.login-open', '.modal__login');
modalClose('.modal__close');
let modalItem = document.querySelectorAll('.modal__item');
// if (width <= 720) {
modalItem.forEach(modal => {
if (modal.classList.contains('active')) {
let aside = document.querySelector('.modal__aside');
if (width <= 720) {
aside.style.width = `${width}px`
}else{
let openAside = document.querySelector('.modal__item.active'),
newWidth = openAside.clientWidth;
if (newWidth < 400){
newWidth = 400
}
aside.style.width = `${newWidth}px`
}
}
})
// }
});
// resize

@ -1,96 +0,0 @@
'use strict';
let widthPhoneCabinet = 1200;
toggleOpenX('.cabinet-card__order', '.cabinet-card-order__open-detail', '.cabinet-card-order__detail', '.cabinet-card-order__block-detail');
function toggleOpenX(mainElement, buttonElement ,heightElement, contentElement, close) {
let elements = document.querySelectorAll(mainElement);
elements.forEach(e => {
let thisMainElement = e,
thisButtonElement = e.querySelector(buttonElement),
thisHeightElement = e.querySelector(heightElement),
thisContentElement = e.querySelector(contentElement);
if (thisButtonElement){
thisButtonElement.onclick = function (e) {
let height = thisHeightElement.clientHeight;
if (close == true && !thisMainElement.classList.contains('active')) {
elements.forEach(e => {
if (e.classList.contains('active')) {
e.classList.remove('active');
e.querySelector(contentElement).style.height = null
}
})
}
if (!thisMainElement.classList.contains('active')) {
thisContentElement.style.height = `${height}px`;
thisMainElement.classList.add('active');
}else{
thisContentElement.style.height = null;
thisMainElement.classList.remove('active');
}
}
}
});
}
jQuery('.cabinet-card__button').on('click', function(){
var id = jQuery(this).data('edit')
jQuery(`#pet_edit_` + id).addClass('active')
})
jQuery('.form-sub__btn').on('click', function(){
jQuery(`#subForm`).addClass('active')
})
jQuery('.user-edit-open').on('click', function(){
jQuery(`#user_edit`).addClass('active')
})
jQuery('.cabinet-card__block-add-pets').on('click', function(){
jQuery(`#pet_add_form`).addClass('active')
})
jQuery(document).ready(function ($) {
$('.subscription-address-form').on('submit', function (e) {
e.preventDefault();
var $form = $(this);
var $message = $form.find('.form-message');
var subscriptionId = $form.data('subscription-id');
var address = $form.find('input[name="address"]').val();
var comment = $form.find('textarea[name="comment"]').val();
var nonce = $form.find('input[name="address_nonce"]').val();
$message.hide().removeClass('success error').empty();
$.ajax({
url: '/wp-admin/admin-ajax.php', // Defined in wp_localize_script
type: 'POST',
data: {
action: 'update_subscription_address',
subscription_id: subscriptionId,
address: address,
comment: comment,
address_nonce: nonce
},
success: function (response) {
if (response.success) {
$message.addClass('success').text(response.data.message).show();
} else {
$message.addClass('error').text(response.data.message).show();
}
},
error: function () {
}
});
});
});

@ -184,10 +184,10 @@ $context['months'] = [
if ($orders_pg){
Timber::render('profile/profile-orders-page.twig', $context);
Timber::render('profile/profile-orders.twig', $context);
}
else{
Timber::render('profile/profile-information-page.twig', $context);
Timber::render('profile/profile.twig', $context);
}
?>

@ -139,5 +139,5 @@ $context['subscription'] = $subscription_data;
error_log('Subscription Data: ' . print_r($subscription_data, true));
// Render the Twig template
Timber::render('profile/profile-subs-single-page.twig', $context);
Timber::render('profile/profile-subs-single.twig', $context);
?>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save