html * {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: "Sarabun", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

blockquote {
  margin: 5px 0;
  padding: 1px 12px;
  border: none;
  font-style: normal;
}

figure {
  margin: 0.9em auto;
}

img {
  width: 100%;
  cursor: pointer;
}

a {
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  color: #0044cc;
}

table {
  border-collapse: collapse;
  border: 1px solid black;
}
table ul {
  margin: 0;
  padding-left: 20px;
}
table td,
table th {
  border: 1px solid black;
  padding: 15px;
}
table tr:first-child th {
  border-top: 0;
}
table tr:last-child td {
  border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
  border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
  border-right: 0;
}

.vazhno {
  font-family: sans-serif;
  background-color: rgb(243, 243, 243);
  border: solid 3px rgb(219, 1, 15);
  font-style: normal;
  border-radius: 10px;
  padding: 0 20px;
  color: rgb(9, 1, 96);
  font-weight: 600;
}

.vazhno b,
.vazhno strong {
  color: rgb(219, 1, 15);
}

.vazhno2 {
  font-family: sans-serif;
  background-color: #fff679b8;
  border: solid 3px #c8b000;
  font-style: normal;
  border-radius: 10px;
  padding: 0 20px;
  color: rgb(9, 1, 96);
  font-weight: 500;
  line-height: 1.6;
}

.vazhno3 {
  font-family: sans-serif;
  border: solid 3px #008011;
  font-style: normal;
  border-radius: 10px;
  padding: 0 20px;
  background-color: #e2f0dd;
  color: #008011;
  font-weight: 500;
  line-height: 1.6;
}

.vazhno4 {
  font-family: sans-serif;
  border: solid 3px #810f0f;
  font-style: normal;
  border-radius: 10px;
  padding: 0 20px;
  background-color: #fbdfdf;
  color: #810f0f;
  font-weight: 500;
  line-height: 1.6;
}

.imageblock {
  width: 100%;
  display: block;
  margin: 10px auto;
  float: none;
  padding: 10px 10px 0 10px;
  background: #ededed;
}

.imageblock figcaption {
  display: block;
  padding-top: 5px;
  padding-bottom: 10px;
  background: none;
  text-align: center;
}

.imageblock2 {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  float: none;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: #ededed;
}

.imageblock2 img {
  min-width: 0%;
  width: 60%;
  display: block;
}

.imageblock2 figcaption {
  width: 59%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  word-break: normal;
}

.imageblock2 figcaption p {
  margin: 0 0 10px 0;
}

@media (max-width: 600px) {
  .imageblock2 {
    flex-direction: column;
  }

  .imageblock2 img {
    min-width: 0%;
    width: 100%;
    display: block;
  }

  .imageblock2 figcaption {
    width: 100%;
    display: block;
    text-align: center;
  }

  .imageblock2 figcaption p:first-child {
    margin: 10px 0 10px 0;
  }
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: auto;
  padding: 0 15px;
}

.green_bg_block {
  font-family: sans-serif;
  font-size: 26px;
  color: #fff;
  background: #0b642b;
  text-align: center;
  border-radius: 10px;
  border: none;
  font-style: normal;
  border-radius: 10px;
  padding: 10px;
  color: rgb(9, 1, 96);
  font-weight: 600;
}

.block_border {
  border: solid 3px;
}

.block_border_radius {
  border-radius: 10px;
}

.block_green {
  background-color: #e2f0dd;
  border-color: #008011;
  border: 1px solid black;
}

.block_yellow {
  background-color: #fffcdf;
  border-color: #fff28e;
  border: 1px solid black;
}

.block_yellow ul li {
  margin-bottom: 10px;
}

.block_red {
  background-color: #fbdfdf;
  border-color: #810f0f;
  border: 1px solid black;
}

.block_blue {
  background-color: #5968fb;
  border-color: #0f2a81;
  color: #fff;
}

.block_gray {
  background-color: #ececec;
  border-color: #c5c5c5;
  border: 1px solid black;
}

.block_blue_dark {
  background-color: #0f2a81;
  border-color: #0f2a81;
  color: #fff;
}

.block_green_dark {
  background-color: #008011;
  border-color: #008011;
  color: #fff;
}

.block_red_dark {
  background-color: #810f0f;
  border-color: #810f0f;
  color: #fff;
}

figure img {
  margin: auto;
  max-width: inherit;
  display: block;
}

.coment_header {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-top: 35px;
}

.coment_header span {
  font-size: 20px;
  font-weight: 700;
}

.coment_header img {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  display: block;
}

.scrollBtn {
  margin: auto;
  display: block;
  width: fit-content;
  margin-top: 30px;
  margin-bottom: 40px;
  background-color: #eb2626;
  text-align: center;
  color: #fff;
  padding: 5px 15px;
  font-size: 20px;
  border-radius: 10px;
  transition: all 0.2s;
}
.scrollBtn:hover {
  filter: brightness(85%);
  scale: 0.985;
}

.dialog {
  display: flex !important;
  gap: 15px;
  align-items: flex-start;
}

.dialog img {
  height: 75px !important;
  min-height: 75px !important;
  max-height: 75px !important;
  width: 75px !important;
  min-width: 75px !important;
  max-width: 75px !important;
  border-radius: 50%;
  margin: 0;
}

.dialog figcaption {
  background: #ededed !important;
  border-radius: 15px;
  font-size: 18px !important;
  text-align: start;
  padding: 10px;
  min-height: 75px;
  min-width: calc(100% - 90px);
}

.dialog figcaption::before {
  content: "";
  left: -10px;
  top: 30px;
  transform: rotate(45deg) translateX(6px);
  position: absolute;
  background-color: #ededed;
  width: 10px;
  height: 10px;
}

.form__product__newprice {
  gap: 10px;
}

#discoundIcon {
  display: block;
  margin: 10px auto !important;
  width: 70px;
  animation-name: rotationDiscount;
  animation-duration: 5s;
  animation-iteration-count: infinite;
}

@keyframes rotationDiscount {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-40deg);
  }

  40% {
    transform: rotate(1100deg);
  }

  60% {
    transform: rotate(0deg);
  }
}

.form {
  background: url("../images/formbg2.jpg");
  background-position: top 0 right 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: block;
  padding: 20px;
  /* width: calc(100% - 40px); */
  max-width: 700px;
  margin: auto;
}

.form img {
  margin: 0 !important;
}

.form__product {
  text-align: center;
  margin-top: 40px;
}

.form__product__title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.form__product__subtitle {
  font-size: 21px;
  font-weight: 700;
}

.form__product__subtitle > span {
  font-size: 32px;
  color: red;
}

.form__product__oldprice {
  font-size: 17px;
  text-decoration: line-through;
  color: rgb(132, 132, 132);
}

.form__product__newprice {
  padding-top: 5px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.form__product__newprice > span {
  color: red;
  font-size: 30px;
}

@media (max-width: 500px) {
  .form__product__newprice {
    margin-top: 5px;
    flex-direction: column;
  }

  .form__product__newprice > span {
    font-size: 30px;
  }
}

.form__product__counter {
  width: fit-content;
  color: #be1c1c;
  margin: auto;
  padding: 5px;
  font-size: 30px;
  font-weight: 700;
  border-radius: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.form__product__counter > #goodsCount {
  background: #be1c1c;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
}

.form__inputs {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  max-width: 450px;
  margin: auto;
}

.form__inputs > label {
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.form__inputs input,
.form__inputs button {
  padding: 15px 20px;
  border-style: solid;
  border-color: rgb(228, 228, 228);
  border-width: 2px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
}

.form__inputs > button {
  background: rgb(192, 2, 2);
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

.form__inputs > button:hover {
  background: rgb(172, 0, 0);
}

.form__footer {
  padding-top: 10px;
  text-align: center;
  font-style: italic;
  font-size: 14px;
  max-width: 560px;
  margin: auto;
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 40px;
}

.central_red {
  color: rgb(192, 2, 2);
  margin-bottom: 20px;
  text-align: center;
}

.left_red {
  color: rgb(192, 2, 2);
  margin-bottom: 20px;
}

#name-error,
#phone-error {
  font-size: 16px;
  color: red;
  font-weight: 700;
  display: flex;
  justify-content: center;
}

#submit-error {
  font-size: 16px;
  color: red;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
}

#submit {
  margin: 10px auto;
  font-weight: 700;
  width: 100%;
  animation-name: submitBounce;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes submitBounce {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.red {
  color: red;
}

.dr {
  color: #be0707;
}

.gr {
  color: #01ad35;
}

.text-big {
  font-size: 20px;
}

.text-bigg {
  font-size: 22px;
}

@media (max-width: 767px) {
  .form__product__title,
  .form__product__counter,
  .form__product__counter > #goodsCount {
    font-size: 26px;
  }

  .form__product {
    margin-top: 20px;
  }

  .form__footer {
    margin-bottom: 20px;
  }

  .coment_header span {
    font-size: 19px;
  }
}

.image_resized.blur {
  position: relative;
  background: #eee none repeat scroll 0% 0%;
  padding: 10px;
  cursor: pointer;
}

.image_resized.blur img {
  filter: blur(15px);
}

.image_resized .blur-p {
  position: absolute;
  margin: 10px 0;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
}

.image_resized.txt-none {
  text-indent: -9999px;
}

@media (max-width: 767px) {
  h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  h2 {
    font-size: 23px;
  }
}
