*:where(:not(html, iframe, canvas, img, svg, video):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
a, button {
    cursor: revert;
}
ol, ul, menu {
    list-style: none;
}
img {
    max-width: 100%;
}
table {
    border-collapse: collapse;
}
input, textarea {
    -webkit-user-select: auto;
}
textarea {
    white-space: revert;
}
meter {
    -webkit-appearance: revert;
    appearance: revert;
}
::placeholder {
    color: unset;
}
:where([hidden]) {
    display: none;
}
:where([contenteditable]:not([contenteditable="false"])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    -webkit-user-select: auto;
}
:where([draggable="true"]) {
    -webkit-user-drag: element;
}
:root {
  --blue: #0091FF;
}
body {
  min-height : 100vh;
  max-width : 500px;
  margin: 0 auto;
  display          : flex;
  flex-direction   : column;
  justify-content  : flex-start;
  align-items      : center;
  background: #F2EEEC;
  color: black;
  font-family: 'Istok Web', sans-serif;
  font-size : 14px;
  font-weight: 500;
  position: relative;
}
header {
  width           : 100%;
  display         : flex;
  flex-wrap       : wrap;
  flex            : 0 0 auto;
  justify-content : center;
  align-items     : center;
  position: fixed;
  height: 70px;
  background-color: #F2EEEC;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  z-index: 99;
}
section {
  width           : 100%;
  display         : flex;
  flex-wrap       : wrap;
  justify-content : flex-start;
  align-items     : flex-start;
  align-content: flex-start;
  overflow-y: auto;
}
main {
  display        : flex;
  flex           : 1 0 auto;
  flex-direction : column;
  align-items    : center;
  width          : 100%;
  background-color: #F5F5F5;
  margin-top: 70px;
}
div {
  max-width: 100%;
  display         : flex;
  flex-wrap       : wrap;
  justify-content : center;
  align-items     : center;
  align-content: center;
}
nav {
  width: 100%;
  height: 100%;
  margin: 0 19px 0 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
}
nav a {
  font-size: 14px;
  color: var(--blue);
  text-decoration: underline;
  position: relative;
  z-index: 0;
}
nav a.active {
  color: black;
  text-decoration: none;
}
nav a.active:after {
  content: '';
  width: calc(100% + 16px);
  height: calc(100% + 2px);
  position: absolute;
  top: -1px;
  left: -8px;
  background-color: #FEFFA4;
  z-index: -1;
}
nav a.entry-a {
  color: black;
  padding-right: 18px;
}
nav a.entry-a:after {
  content: '';
  width: 15px;
  height: 15px;
  position: absolute;
  top: 50%;
  margin-top: -7.5px;
  right: 0;
  background-image: url(/static/img/entry-arrow.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.about {
  padding: 29px 53px 29px 17px;
}
.title {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 13px;
}
.description {
  width: 100%;
  line-height: 20px;
  margin-bottom: 34px;
}
.reviews {
  padding: 29px 0 29px 16px;
  align-items: center;
  align-content: center;
  flex-direction: column;
}
h1 {
  width: 100%;
  font-size: 22px;
  margin-bottom: 25px;
}
.reviews h1 {
  text-align: center;
}
/* .slider {
  width: 359px;
  height: 332px;
  align-items: flex-end;
  align-content: flex-end;
} */
/*  */
.swiper {
  width: 343px;
  height: 386px;
  margin: 40px auto 0 !important;
  justify-content: center !important;
  align-items: flex-start;
  align-content: flex-start;
}
.swiper-wrapper {
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 40px;
  height: 336px !important;
}
.swiper .slide {
  height: 336px;
}
.swiper .before img,
.swiper  .after img {
  width: 100%;
  height: calc(100% - 19px);
  position: absolute;
  bottom: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}
.swiper-pagination {
  bottom: 0px !important;
}
.swiper-pagination-bullet {
  width: 5px !important;
  height: 5px !important;
  margin: 0 2.5px !important;
  border: 1px solid #979797 !important;
  border-radius: 50% !important;
  background: none !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: black !important;
}
/*  */
.slider>input {
  display: none;
}
.slider-wrap {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  height: 289px;
  overflow: hidden;
  width: 100%;
  z-index: 0;
  position: relative;
}
.slide {
  width: 241px;
  height: 271px;
  position: absolute;
  background: white;
  transition: all .5s;
  padding: 10px 6px 18px;
  justify-content: space-between;
}
.slide-title {
  width: 100%;
  font-size: 10px;
  margin-bottom: 5px;
  padding-left: 5px;
}
.before,
.after {
  width: calc(50% - 2.5px);
  height: 100%;
  align-items: flex-start;
  align-content: flex-start;
  position: relative;
}
.before img,
.after img {
  width: 100%;
  height: 224px;
  position: absolute;
  bottom: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}
.slide label {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.slide-1 {
  z-index: 5;
}
.slide-2 {
  z-index: 4;
  top: 18px;
  left: 186px;
}
.slide-3 {
  z-index: 3;
  top: 18px;
  left: 186px;
}
.slide-4 {
  z-index: 2;
  top: 18px;
  left: 186px;
}
.slide-5 {
  z-index: 1;
  top: 18px;
  left: 186px;
}
#s1:checked ~ .slider-wrap .slide-1,
#s2:checked ~ .slider-wrap .slide-2,
#s3:checked ~ .slider-wrap .slide-3,
#s4:checked ~ .slider-wrap .slide-4,
#s5:checked ~ .slider-wrap .slide-5 {
  top: 0;
  left: 0;
}
#s1:checked ~ .slider-wrap .slide-2,
#s2:checked ~ .slider-wrap .slide-3,
#s3:checked ~ .slider-wrap .slide-4,
#s4:checked ~ .slider-wrap .slide-5 {
  top: 18px;
  left: 186px;
}
#s1:checked ~ .slider-wrap .slide-3,
#s1:checked ~ .slider-wrap .slide-4,
#s1:checked ~ .slider-wrap .slide-5,
#s2:checked ~ .slider-wrap .slide-4,
#s2:checked ~ .slider-wrap .slide-5,
#s3:checked ~ .slider-wrap .slide-5,
#s3:checked ~ .slider-wrap .slide-1,
#s3:checked ~ .slider-wrap .slide-2,
#s4:checked ~ .slider-wrap .slide-1,
#s4:checked ~ .slider-wrap .slide-2,
#s4:checked ~ .slider-wrap .slide-3,
#s5:checked ~ .slider-wrap .slide-1,
#s5:checked ~ .slider-wrap .slide-2,
#s5:checked ~ .slider-wrap .slide-3,
#s5:checked ~ .slider-wrap .slide-4 {
  opacity: 0;
}
#s2:checked ~ .slider-wrap .slide-1,
#s3:checked ~ .slider-wrap .slide-1,
#s3:checked ~ .slider-wrap .slide-2,
#s4:checked ~ .slider-wrap .slide-1,
#s4:checked ~ .slider-wrap .slide-2,
#s4:checked ~ .slider-wrap .slide-3,
#s5:checked ~ .slider-wrap .slide-1,
#s5:checked ~ .slider-wrap .slide-2,
#s5:checked ~ .slider-wrap .slide-3,
#s5:checked ~ .slider-wrap .slide-4 {
  left: -100%;
}
.slider-pagination {
  width: 100%;
  height: 15px;
  margin-top: 28px;
}
.slider-pagination label {
  width: 15px;
  height: 15px;
  margin: 0 6.5px;
  border: 1px solid #979797;
  border-radius: 50%;
}
#s1:checked ~ .slider-pagination label[for=s1],
#s2:checked ~ .slider-pagination label[for=s2],
#s3:checked ~ .slider-pagination label[for=s3],
#s4:checked ~ .slider-pagination label[for=s4],
#s5:checked ~ .slider-pagination label[for=s5] {
  background-color: black;
}
.btn {
  width: 300px;
  background: linear-gradient(180deg, #B4FCAB 0%, #86E960 98.52%);
  box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.5);
  border-radius: 17px;
  font-size: 22px;
  line-height: 1;
  color: #5C5C5C;
  padding: 20px;
  text-align: center;
}
.reviews .btn {
  margin-top: 35px;
  margin-right: 16px;
}

.page-entry header,
.page-reg header,
.page-train header {
  height: auto;
  position: relative;
  box-shadow: none;
}
.page-entry nav,
.page-reg nav,
.page-train nav {
  margin: 28px 22px 22px 25px;
  justify-content: flex-end;
}
.page-entry .entry-a,
.page-reg .entry-a,
.page-train .entry-a {
  padding-left: 18px;
  padding-right: 0;
}
.page-entry .entry-a:after,
.page-reg .entry-a:after,
.page-train .entry-a:after {
  left: 0;
  transform: rotate(-180deg);
}
.page-entry main,
.page-reg main,
.page-train main {
  margin-top: 0;
  background-color: #F2EEEC;
}
.entry,
.reg,
.train {
  padding: 0 22px 25px 25px;
  justify-content: center;
}
.entry-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.entry-form .field {
  width: 100%;
  position: relative;
  margin-bottom: 25px;
}
.entry-form .field input {
  width: 100%;
  height: auto;
  font-size: 22px;
  line-height: 1;
  padding: 11px 11px 3px;
  box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.5);
  background-color: white;
}
.entry-form .field label {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 22px;
  color: #B8B8B8;
  padding: 0 11px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  transition: all .2s;
}
.entry-form .field input:focus + label,
.entry-form .field input:valid + label {
  font-size: 10px;
  padding-top: 2px;
  font-style: italic;
  color: #7C7C7C;
  align-items: flex-start;
  align-content: flex-start;
}
.entry-form .btn {
  margin-top: 20px;
}

.page-account nav {
  margin: 0 25px 0 18px;
  position: relative;
  padding: 21.5px 0;
}
.profile {
  width: calc(100% - 30px);
  justify-content: flex-start;
}
.profile img {
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border-radius: 50%;
}
.profile .name {
  font-size: 18px;
  line-height: 1;
}
#hamd {
  display: none;
}
.page-account nav>label[for=hamb] {
  width: 30px;
  height: 27px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  position: relative;
}
.page-account nav>label[for=hamb]:before {
  content: '';
  width: 12px;
  height: 12px;
  background-color: #FF0000;
  position: absolute;
  top: 50%;
  margin-top: -6px;
  left: -6px;
  border-radius: 50%;
}
.page-account nav>label[for=hamb] span {
  width: 100%;
  height: 4px;
  background-color: black;
  margin: 2.5px 0;
}
.page-account #hamb:checked ~ header nav>label[for=hamb] {
  display: none;
}
.hamb {
  display: none;
  width: 100%;
  margin-top: 42.5px;
}
.hamb a {
  width: 100%;
  margin-bottom: 22px;
  font-size: 18px;
  text-decoration: none;
  color: black;
  padding-left: 13px;
  position: relative;
}
.hamb a.active:after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FF0000;
  top: 50%;
  margin-top: -4px;
  left: 0;
  position: absolute;
}
.hamb label[for=hamb] {
  width: 100%;
  height: 32px;
  margin-top: 3px;
  position: relative;
}
.hamb label[for=hamb]:after {
  content: '';
  width: 115px;
  height: 8px;
  background: linear-gradient(180deg, #F8F8F8 0%, #BABABA 100%);
  border-radius: 4px;
  position: absolute;
  top: 50%;
  margin-top: -4px;
  left: 50%;
  margin-left: -57.5px;
}
.page-account #hamb:checked ~ header {
  height: auto;
}
.page-account #hamb:checked ~ header nav {
  padding: 21.5px 0 0;
}
.page-account #hamb:checked ~ header nav .hamb {
  display: flex;
}


.account {
  padding: 28px 25px 25px 18px;
  justify-content: center;
}
.account h1 {
  margin-bottom: 20px;
}
.account-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
}
.account-form .account-field {
  width: 100%;
  margin-bottom: 21px;
  justify-content: flex-start;
}
.account-form .account-field label,
.account-form .account-field label[for=kd] span:first-child {
  width: 120px;
  font-size: 18px;
  font-style: italic;
  line-height: 1;
}
.account-form .account-field input[name=date] {
  width: 129px;
  background: linear-gradient(180deg, #EEEEEE 0%, #D8D8D8 100%);
  padding: 4.75px 12.74px 6.25px 12px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}
.account-form .account-field #reportrange {
  width: 164px;
  background: linear-gradient(180deg, #EEEEEE 0%, #D8D8D8 100%);
  padding: 4.75px 10px 6.24px 12px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  align-content: center;
}
.account-form .account-field input[name=date]::-webkit-calendar-picker-indicator {
  background: url(/static/img/date.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.account-form .account-field #reportrange:after {
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid black;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;

}
.account-form .account-field input[name=date]:focus,
.account-form .account-field input[name=date]:valid {
  background: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}
.account-form .account-field input[name=food], input[name=link] {
  width: calc(100% - 120px);
  font-size: 14px;
  line-height: 1;
  background-color: #E7E7E7;
  box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
}
.account-form .account-field input[name=food]:focus, input[name=link]:focus,
.account-form .account-field input[name=food]:valid, input[name=link]:valid {
  background: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}
.account-form .account-field input[type=number] {
  width: 79px;
  font-size: 14px;
  line-height: 1;
  background-color: #E7E7E7;
  box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
}
.account-form .account-field input[type=number]:focus,
.account-form .account-field input[type=number]:valid {
  background: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}
.account-form .account-field input[name=kd] {
  display: none;
  transition: all .3s;
}
.account-form .account-field label[for=kd] {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  transition: all .3s;
}
.account-form .account-field label[for=kd] span:last-child {
  width: 68px;
  height: 36px;
  background-color: #DCD9D9;
  border-radius: 35px;
  position: relative;
  transition: all .3s;
}
.account-form .account-field #kd:checked + label[for=kd] span:last-child {
  background-color: #FFA98E;
  transition: all .3s;
}
.account-form .account-field label[for=kd] span:last-child:before {
  content: '';
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  margin-top: -15px;
  left: 3px;
  transition: all .3s;
}
.account-form .account-field #kd:checked + label[for=kd] span:last-child:before {
  left: 35px;
  transition: all .3s;
}

.account-photo {
  width: 100%;
  margin-top: 22px;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;
}
.account-photo-title {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 23px;
}
.view {
  width: calc(50% - 5px);
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
}
.view>img {
  width: 27px;
  height: 95px;
  margin-right: 17px;
  object-fit: contain;
  object-position: center;
}
.account-photo-field {
  width: calc(100% - 27px - 17px);
  justify-content: flex-start;

}
.account-photo-field label {
  width: 100%;
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  cursor: default;
}
.account-photo-field label span:first-child {
  width: 100%;
}
.account-photo-field label span.sel {
  color: var(--blue);
  text-decoration: underline;
  width: 100%;
}
.account-photo-field input {
  display: none;
}
.account-photo-field input:valid + label span.img {

}
.account-photo-field input:valid + label span.img:after {
  content: '';
  width: 21px;
  height: 21px;
  background-color: #FF0000;
  position: absolute;
  top: -2px;
  right: -15px;
  border-radius: 50%;
}

.btn-2 {
  background: linear-gradient(180deg, #FCD6AB 0%, #E9A660 98.52%);
  margin-top: 21px;
}

.sent {
  padding: 29px 18px 25px 16px;
}
.sent h1 {
  text-align: center;
  font-size: 18px;
  color: #0A6800;
  margin-bottom: 26px;
}
.table1 {
  width: 100%;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  background: white;
  margin-bottom: 29px;
  padding: 18px 14px;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  overflow-x:auto;
}
.table1-title {
  width: 100%;
  font-size: 22px;
}
.table1-content {
  width: 100%;
  min-width: 313px;
  overflow-x:auto;
}
.table1-content>div {
  width: 100%;
  justify-content: flex-start;
}
.table1-content>div>div {
  justify-content: flex-start;
  font-size: 16px;
}
.table1-content>div>div:first-child {
  width: 71px;
}
.table1-content>div>div:nth-child(2) {
  width: 93px;
}
.table1-content>div>div:nth-child(3) {
  width: 76px;
}
.table1-content>div>div:last-child {
  width: 73px;
}
.table1-content>div:first-child>div {
  font-style: italic;
}
.table1-content>div:last-child>div {
  font-weight: 700;
}
.not {
  width: 100%;
  background-color: #FEFFDC;
  padding: 21px 19px 38px 14px;
}
.not-title {
  width: 100%;
  font-size: 22px;
  margin-bottom: 14px;
}
.not-content {
  width: 100%;
  font-size: 14px;
  line-height: 20px;
}
.sent .btn {
  margin-top: 61px;
}
.sent .btn span {
  position: relative;
}
.sent .btn span:after {
  content: '';
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  margin-top: -10px;
  right: -37px;
  background-image: url(/static/img/char.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.table-result {
  width: 100%;
  margin-bottom: 32px;
  justify-content: flex-start;
}
.table-result div {
  width: calc(100%/3);
  justify-content: flex-start;
}
.table-result div>span:first-child {
  font-size: 18px;
  width: 100%;
}
.table-result div>span:last-child {
  font-size: 16px;
  font-weight: 700;
  position: relative;
}
.table-result div>span.down:after {
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid #1DCF15;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  position: absolute;
  top: 50%;
  margin-top: -4px;
  right: -16px;
}
.table-result div>span.up:after {
  content: '';
  width: 0;
  height: 0;
  border-bottom: 8px solid #CF1515;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  position: absolute;
  top: 50%;
  margin-top: -4px;
  right: -16px;
}
.table-result div>span.md:after {
  content: '';
  width: 11px;
  height: 11px;
  background-color: #FFE452;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  margin-top: -5.5px;
  right: -16px;
}


.history-table {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  overflow-x: auto;
}
.history-table-title {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 11px;
}
.history-table-content {
  width: 100%;
  min-width: 332px;
  overflow-x: auto;
}
.history-table-content>div {
  width: 100%;
}
.ht-tr1 {
  border-bottom: 1px solid #979797;
  margin-bottom: 8px;
}
.ht-tr1>span {
  padding: 6px 0;
  font-style: italic;
  line-height: 1;
}
.history-table-content>div:not(:first-child) {
  margin-bottom: 5px;
}
.history-table-content>div:not(:first-child):hover {
  background-color: #E1E1E1;
}
.history-table-content>div>span:first-child {
  width: 65px;
  padding: 4px 0 4px 4px !important;
}
.history-table-content>div>span:nth-child(2) {
  width: 80px;
}
.history-table-content>div>span:nth-child(3) {
  width: 63px;
}
.history-table-content>div>span:nth-child(4) {
  width: 70px;
}
.history-table-content>div>span:last-child {
  width: 54px;
}
.history-table-content>div:not(:first-child) span {
  padding: 4px 0;
}
.messages {
    padding: 10px;
    color: #35bd00;
    font-size: 20px;
}
.mt-10{
  margin-top: 10px;
}
.charts-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

/* Общие улучшения для мобильных устройств */
@media (max-width: 768px) {
    .account {
        padding: 10px;
    }
    
    .account h1 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .history-table-title {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }
}

.charts-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-wrapper {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-wrapper h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.chart-wrapper canvas {
    max-height: 200px;
}

@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    /* Мобильные стили для трендов */
    .trend-value {
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
        text-align: center;
    }
    
    .trend-value .value {
        font-size: 14px;
    }
    
    .trend-value .change {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .trend-icon {
        font-size: 16px;
    }
    
    /* Мобильные стили для таблицы результатов */
    .table-result .tr-tr1,
    .table-result .tr-tr2,
    .table-result .tr-tr3,
    .table-result .tr-tr4,
    .table-result .tr-tr5,
    .table-result .tr-tr6 {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
        text-align: center;
    }
    
    .table-result .tr-tr1 span:first-child,
    .table-result .tr-tr2 span:first-child,
    .table-result .tr-tr3 span:first-child,
    .table-result .tr-tr4 span:first-child,
    .table-result .tr-tr5 span:first-child,
    .table-result .tr-tr6 span:first-child {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    /* Мобильные стили для таблицы истории */
    .history-table {
        margin-top: 20px;
    }
    
    .history-table-header {
        margin-bottom: 15px;
    }
    
    .history-table-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .ht-header, .ht-row {
        min-width: 280px;
        font-size: 12px;
    }
    
    .ht-header span, .ht-row span {
        padding: 4px 6px;
    }
    
    .summary-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .summary-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .summary-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-icon {
        font-size: 20px;
        min-width: auto;
    }
    
    .card-label {
        font-size: 11px;
    }
    
    .card-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .charts-section {
        padding: 10px;
        margin-top: 20px;
    }
    
    .charts-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .chart-wrapper {
        padding: 10px;
    }
    
    .chart-wrapper h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .chart-wrapper canvas {
        max-height: 150px;
    }
    
    /* Очень маленькие экраны */
    .trend-value {
        padding: 4px 6px;
        gap: 2px;
    }
    
    .trend-value .value {
        font-size: 12px;
    }
    
    .trend-value .change {
        font-size: 9px;
    }
    
    .trend-icon {
        font-size: 14px;
    }
    
    /* Очень маленькие экраны - таблица истории */
    .history-table-content {
        font-size: 11px;
    }
    
    .ht-tr1 {
        min-width: 280px;
    }
    
    .ht-tr1 span {
        padding: 2px 4px;
    }
    
    /* Очень маленькие экраны - основная таблица */
    .table-result .tr-tr1,
    .table-result .tr-tr2,
    .table-result .tr-tr3,
    .table-result .tr-tr4,
    .table-result .tr-tr5,
    .table-result .tr-tr6 {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .summary-card {
        padding: 10px;
        gap: 8px;
    }
    
    .card-icon {
        font-size: 18px;
    }
    
    .card-value {
        font-size: 13px;
    }
}

/* Стили для трендов */
.trend-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.trend-icon {
    font-size: 18px;
    min-width: 20px;
}

.trend-value .value {
    font-size: 16px;
    font-weight: 600;
}

.trend-value .change {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.1);
}

.trend-bad {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.trend-bad .change {
    background: rgba(255,255,255,0.2);
    color: white;
}

.trend-good {
    background: linear-gradient(135deg, #51cf66, #69db7c);
    color: white;
}

.trend-good .change {
    background: rgba(255,255,255,0.2);
    color: white;
}

.trend-neutral {
    background: linear-gradient(135deg, #868e96, #adb5bd);
    color: white;
}

.trend-neutral .change {
    background: rgba(255,255,255,0.2);
    color: white;
}


/* Анимация для трендов */
.trend-value {
    transition: all 0.3s ease;
    transform: scale(1);
}

.trend-value:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Улучшенная таблица результатов */
.table-result {
    margin-bottom: 20px;
}

.table-result .tr-tr1,
.table-result .tr-tr2,
.table-result .tr-tr3,
.table-result .tr-tr4,
.table-result .tr-tr5,
.table-result .tr-tr6 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.table-result .tr-tr1 {
    border-left-color: #ff6b6b;
}

.table-result .tr-tr2 {
    border-left-color: #339af0;
}

.table-result .tr-tr3 {
    border-left-color: #ffd43b;
}

.table-result .tr-tr4 {
    border-left-color: #51cf66;
}

.table-result .tr-tr5 {
    border-left-color: #339af0;
}

.table-result .tr-tr6 {
    border-left-color: #ffd43b;
}

/* Стили для улучшенной таблицы истории */
.history-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-table-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}


.ht-header {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    align-items: center;
}

.ht-header .date-col,
.ht-header .fat-col,
.ht-header .weight-col,
.ht-header .waist-col,
.ht-header .hips-col {
    padding: 12px 8px;
    font-size: 14px;
}

.ht-row {
    display: flex;
    background: white;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    align-items: center;
}

.ht-row .date-col,
.ht-row .fat-col,
.ht-row .weight-col,
.ht-row .waist-col,
.ht-row .hips-col {
    padding: 8px;
    font-size: 13px;
}

.ht-row:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.latest-row {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5) !important;
    border-left: 4px solid #2196f3;
}

.latest-row:hover {
    background: linear-gradient(135deg, #e1f5fe, #fce4ec) !important;
}

.ht-row:last-of-type {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* Колонки */
.date-col {
    width: 80px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fat-col {
    width: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weight-col {
    width: 60px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waist-col {
    width: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hips-col {
    width: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


.summary-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 20px 0;
    text-align: center;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.summary-card.positive {
    border-left-color: #51cf66;
    background: linear-gradient(135deg, #f8fff9, #ffffff);
}

.summary-card.negative {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #fff8f8, #ffffff);
}

.summary-card.neutral {
    border-left-color: #868e96;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.card-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-value {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
}

.summary-card.positive .card-value {
    color: #51cf66;
}

.summary-card.negative .card-value {
    color: #ff6b6b;
}

.summary-card.neutral .card-value {
    color: #868e96;
}