@font-face {
    font-family: dinpro;
    src: url("../fonts/dinpro.otf");
}

@font-face {
    font-family: dinproblack;
    src: url("../fonts/dinpro_condensedblack.otf");
}

@font-face {
    font-family: dinprobold;
    src: url("../fonts/dinpro_condensedbold.otf");
}

@font-face {
    font-family: dinproreg;
    src: url("../fonts/dinpro_condensedregular.otf");
}

@font-face {
    font-family: dinproh1;
    src: url("../fonts/dinpro_condensedmedium.otf");
}

@font-face {
    font-family: dinprohmed;
    src: url("../fonts/dinpro_medium.otf");
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

#appBlock {
    min-height:100vh;
    font-family: dinpro;
    color: #1F1F1F;
}

.container{
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px){
    .container{
        max-width: 540px;
    }
}

@media (max-width: 575px){
    .container{
        width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
    }
}

#appBlock .top-panel {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

#appBlock .top-panel div:last-child,
#appBlock .top-panel .pet-img-block {
    width: 35px;
    height: 35px;
}

#appBlock .top-panel .pet-icon-cat,
#appBlock .top-panel .pet-icon-dog {
    border: 1px solid #EBEBEB;
    border-radius: 50%;
    box-shadow: 1px 1px 8px 0px #00000012;
}

#appBlock .top-panel .pet-icon-cat {
    background: url(../img/icon-cat.svg) center no-repeat;
    background-size: 63%;
}

#appBlock .top-panel .pet-icon-dog {
    background: url(../img/icon-dog.svg) center no-repeat;
    background-size: 52%;
}

#appBlock .top-panel p {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    margin:0;
}

#appBlock .top-panel .exit-btn {
    padding: 10px;
}

#appBlock .top-panel .exit-btn img {
    width: 15px;
}

#appBlock .title-text {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    margin: 0;
}

#appBlock .double-choise-block {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#appBlock .double-choise-block div{
    position: relative;
    width: calc(50% - 4px);
}

#appBlock .double-choise-block div label{
    box-sizing: border-box;
    border: 1.5px solid #EBEBEB;
    border-radius: 12px;
    padding: 2px;
    display: block;
}

#appBlock .double-choise-block div img{
    border-radius: 15px;
    width: 100%;
}

#appBlock .double-choise-block div p{
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    padding: 0 12px 12px;
    margin: 0;
}

#appBlock .double-choise-block input[type="radio"],
#appBlock .option-block input[type="radio"],
#appBlock #unknowDateInput input[type="radio"],
#appBlock .double-choise-block input[type="checkbox"],
#appBlock #specialNeedsOption input[type="checkbox"],
#appBlock #diagnosisOption input[type="checkbox"],
#appBlock .result-option input[type="checkbox"],
#appBlock #dogSizeOption input[type="checkbox"] {
    opacity: 0;
    width: 1px;
    position: absolute;
    left: 50%;
    bottom: 20px;
}

#appBlock .result-option input[type="radio"] {
    opacity: 0;
    width: 1px;
    position: fixed;
    left: 50%;
    bottom: 50%;
}

#appBlock .double-choise-block input[type="radio"]:checked + label,
#appBlock .option-block input[type="radio"]:checked + label,
#appBlock .double-choise-block input[type="checkbox"]:checked + label,
#appBlock #dogSizeOption input[type="checkbox"]:checked + label {
    box-shadow: 0px 2px 8px 0px #0000001F;
} 

#appBlock .result-option label .option-body{
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
} 

#appBlock .result-option input[type="radio"]:checked + .option-title{
    color: #fff;
    background: #E2001A;

} 
#appBlock .result-option input[type="radio"]:checked ~ .option-body{
    display: block;
} 

#appBlock #unknowDateInput input[type="radio"]:checked + label {
    color: #1F1F1F;
}

#appBlock #unknowDateInput label {
    font-weight: 500;
    font-size: 16px;
    margin-left: 16px;
    color: #a5a5a5;
}

#appBlock #specialNeedsOption input[type="checkbox"]:checked + label,
#appBlock #diagnosisOption input[type="checkbox"]:checked + label,
#appBlock #behaviorOption input[type="radio"]:checked + label {
    box-shadow: none;
    background: #e1011b;
} 

#appBlock #specialNeedsOption input[type="checkbox"]:checked + label p,
#appBlock #diagnosisOption input[type="checkbox"]:checked + label p,
#appBlock #behaviorOption input[type="radio"]:checked + label p {
    color: #fff;
} 
#appBlock .double-choise-block input[type="radio"]:checked + label p,
#appBlock .option-block input[type="radio"]:checked + label .breed-name,
#appBlock .double-choise-block input[type="checkbox"]:checked + label p,
#appBlock #dogSizeOption input[type="checkbox"]:checked + label .breed-name {
    color: #E1011B;
} 

#appBlock .btn-prod,
#appBlock .form-btn {
    border-radius: 100px;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    border: none;
    padding: 18px 0;
    cursor: pointer;
    background: #E1011B;
    margin: 35px 0;
}

#appBlock .btn-prod {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
}

#appBlock .btn-prod:hover, 
#appBlock .form-btn:hover {
    transition: all 0.3s;
    background: #bd0117;
}

#appBlock .load-block {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    opacity: 1;
    transition: all 0.5s;
    z-index: 999999;
}

#appBlock .logo-img {
    width: 265px;
    margin-left: 8px;
}

#appBlock .load-spin-block {
    position: relative;
    width: 68px;
    height: 68px;
    margin-top: 32px;
}

#appBlock .load-spin-block img {
    width: 44px;
    position: absolute;
    left: 12px;
    top: 22px;
}

#appBlock .load-spin {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    box-sizing: border-box;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-block;
    border-left: 4px solid #e2001a;
    border-top: 4px solid #e2001a;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1.6s linear infinite;
}

@keyframes rotation {
    0% {
    transform: rotate(0deg);
    }
    100% {
    transform: rotate(360deg);
    }
} 

#appBlock .input-block {
    margin-bottom: 32px;
}

#appBlock #formMain .form-btn {
    margin-top: 0;
    position: relative;
}

#appBlock #formMain #formBtn.form-btn {
    background: #EBEBEB;
    color: #1F1F1F;
}
#appBlock #formMain #formBtn.active-btn {
  color: #fff;
  background: #E1011B;
}
#appBlock #formBtn.disable-btn {
    margin-top: 30px;
    background: #EBEBEB;
    color: #1F1F1F;
}

#appBlock #formBtn.disable-btn:after {
    content: "Нет доступных вариантов рациона.";
    position: absolute;
    left: 0;
    font-weight: 500;
    top: -44px;
    opacity: 0.4;
}

#appBlock #formBtn.disable-btn:before {
    content: "Измените параметры поиска";
    position: absolute;
    left: 0;
    font-weight: 500;
    top: -26px;
    opacity: 0.4;
}

#appBlock .input-style {
    margin-top: 16px;
    outline: none;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #EBEBEB;
    background: #fff;
    padding: 20px 16px;
    font-weight: 500;
    font-size: 16px;
    box-sizing: border-box;
}

#appBlock .title-input-text {
    margin: 0;
    opacity: 0.4;
}

#appBlock .search-breed-input {
    width: 98% !important;
    flex-direction: column;
    position: relative;
    margin: 0 1% 20px;
}

#appBlock .search-breed-input input {
    width: 100%;
    margin: 0;
}

#appBlock .breed-list-block {
    position: absolute;
    left: 0;
    top: 65px;
    width: 100% !important;
    display: block !important;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #EBEBEB;
    padding: 20px 16px;
    box-sizing: border-box;
}

#appBlock .breed-list-block .breed-list {
    width: 100%;
    display: flex;
    flex-direction: column !important;
}

#appBlock .breed-list-block .breed-list p {
    cursor: pointer;
    margin: 5px 0;
    padding: 5px 0;
    font-weight: 500;
    font-size: 16px;
}

#appBlock select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#appBlock  select::-ms-expand {
    display: none;
}

#appBlock #breedBlock {
    position: relative;    
}

#appBlock .popup-wrap {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100vh;
    background: rgb(0 0 0 / 20%);
    z-index: 99999;
    display: flex;
    align-items:end;
}

#appBlock .option-style-block {
    width: calc(100% + 40px);
    margin-left: -20px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: calc(100vh - 25px);
    box-sizing: border-box;
    padding: 15px 20px 0;
    box-shadow: 0px 0px 16px 0px #00000014;
}
#appBlock .option-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-y:scroll;
    scrollbar-width: none;
    max-height: calc(100vh - 200px);
    justify-content: flex-start;
    padding-bottom: 20px;
    box-sizing: border-box;
    -webkit-mask-image: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.3411764706)),color-stop(0%,#000),color-stop(80%,#000),to(rgba(0,0,0,.3411764706)));
    -webkit-mask-image: linear-gradient(rgba(0,0,0,.3411764706),#000 0%,#000 80%,rgba(0,0,0,.3411764706));
    mask-image: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.3411764706)),color-stop(0%,#000),color-stop(80%,#000),to(rgba(0,0,0,.3411764706)));
    mask-image: linear-gradient(rgba(0,0,0,.3411764706),#000 0%,#000 80%,rgba(0,0,0,.3411764706));
}

#appBlock #breedOption .option-block div{
    display: flex;
}

#appBlock #dogSizeOption .option-block {
    overflow-y: hidden;
    flex-wrap: nowrap;
    overflow-x: scroll;
    justify-content: flex-start;
}

#appBlock .result-option::-webkit-scrollbar,
#appBlock .option-block::-webkit-scrollbar {
    display: none;
}

#appBlock .option-block div {
    width: 50%;
}

#appBlock #dogSizeOption .option-block div {
    width: 30%;
    flex-shrink: 0;
}

#appBlock .option-block label {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 0;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1.5px solid #EBEBEB;
    margin: 4px;
}

#appBlock .option-block .breed-name {
    font-weight: 700;
    font-size: 16px;
    margin: 0px 0 25px;
}

#appBlock .option-block .breed-name-mini {
    font-weight: 400;
    font-size: 12px;
    margin: 5px 0 20px;
}

#appBlock .option-block label img{
    order: 2;
    width: 100%;
    border-radius: 15px;
}

#appBlock .popup-wrap .option-title-block {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: 0px;
    margin: 15px 0;
}

#appBlock .popup-wrap#dogSizeOption .option-title-block {
    margin-bottom: 0;
}

#appBlock .dog-size-description {
    font-weight: 400;
    font-size: 16px;
    margin: 8px 0 20px;
}

#appBlock .popup-wrap .option-title-block p{
    margin: 0;
}

#appBlock .popup-wrap .option-title-block .exit-btn {
    padding: 10px;
}

#appBlock .popup-wrap .option-title-block .exit-btn img {
    width: 15px;
}

#appBlock #specialNeedsOption .option-block,
#appBlock #diagnosisOption .option-block,
#appBlock #behaviorOption .option-block {
    display: block;
}

#appBlock #specialNeedsOption .option-block div,
#appBlock #diagnosisOption .option-block div,
#appBlock #behaviorOption .option-block div {
    width: 100%;    
}

#appBlock #specialNeedsOption .option-block label,
#appBlock #diagnosisOption .option-block label,
#appBlock #behaviorOption .option-block label {
    background: #F5F5F5;
    border:  none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-direction: row;
    padding: 8px 12px;
    margin: 8px 0;
}

#appBlock #specialNeedsOption .option-block label p,
#appBlock #diagnosisOption .option-block label p,
#appBlock #behaviorOption .option-block label p{
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
}

#appBlock #specialNeedsOption .option-block label span,
#appBlock #diagnosisOption .option-block label span,
#appBlock #behaviorOption  .option-block label span {
    order: 0;
    width: 48px;
    height: 48px;
    padding: 8px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

#appBlock #specialNeedsOption .option-block label img,
#appBlock #diagnosisOption .option-block label img,
#appBlock #behaviorOption  .option-block label img {
    width: 100%;
    border-radius: 0;
}

#appBlock #dateOption .input-style {
    margin-top: 0;
    margin-bottom: 20px;
}

#appBlock #dateOption .unknow-date-block {
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0px;
}

#appBlock #dateOption #unknowDateBlock input[type="checkbox"] {
    opacity: 0;
    width: 1px;
    position: absolute;
    left: 0;
}

#appBlock #dateOption #unknowDateBlock label {
    padding-left: 32px;
    position: relative;
    color: #a5a5a5;
}

#appBlock #dateOption #unknowDateBlock label:before {
    border-radius: 7px;
    cursor: pointer;
    padding: 11px;
    position: absolute;
    content: '';
    left: 0;
    top: -2px;
    border: 2px solid #ebebeb;
}

#appBlock #dateOption #unknowDateBlock label::after {
   display: none;
   position: absolute;
   content: '';
   width: 19px;
   top: 5px;
   left: 3px;
   background: url(../img/check.svg) center no-repeat;
   background-size: contain;
   height: 13px;
}

#appBlock #dateOption #unknowDateBlock input[type="checkbox"]:checked + label::after {
   display: block;
}

#appBlock #formMain #dateOption .form-btn {
    margin-top: 32px;
}

#appBlock #dateOption .unknow-date-input {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 20px;
}

#appBlock #unknowDateInput .input-style {
    width: 65px;
    box-sizing: border-box;
    padding: 22px;
    margin: 0;
    text-align: center;
}

#appBlock #diagnosisOption .option-title-block {
    margin-bottom: 0;
}

#appBlock #diagnosisOption .title-mini {
    font-weight: 400;
    font-size: 16px;
    margin: 0 0 20px;
}
#appBlock .message::after {
    content: 'Выберите параметр';
    color: #1f1f1f;
    position: absolute;
    bottom: -22px;
    left: 3px;
    font-weight: 400;
    font-size: 12px;
}

#appBlock .message-alert::after { 
    content: 'Что-то пошло не так, попробуйте еще раз...';
    color: #e1011b;
    position: absolute;
    bottom: -22px;
    left: 0;
    font-weight: 400;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

#appBlock .date-block {
    position: relative;
}

#appBlock .date-message::after {
    content: 'Введите корректную дату';
    color: #e1011b;
    position: absolute;
    bottom: 0px;
    right: 5px;
    font-weight: 400;
    font-size: 12px;
}

#appBlock .selected {
    opacity: 1;
}

#appBlock .selected-red {
    color: #e1011b;
}

#appBlock .disable {
    display: none !important;
    opacity: 0 !important;
}

#appBlock .banner-block {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-bottom: 30px;
    box-shadow: 0px 0px 24px 0px #42030373 inset;
    background: #E1011B;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    padding-top: 15px;
}

#appBlock .banner-block p{
    margin: 0;
}
#appBlock .banner-block p:first-child{
    position: relative;
    top: 15px;
}
#appBlock .banner-block img{
    width: 75%;
    margin-bottom: -6px;
}

#appBlock .banner-block .banner-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    position: relative;
    margin-right: 5px;
    top: 20px;
}

#appBlock .banner-block .banner-title img{
    width: 18px;
    margin: 0 12px 0 0;
}

#appBlock .result-option {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    align-items: center;
}

#appBlock .option-title{
    background: #F5F5F5;
    border-radius: 40px;
    margin-right: 12px;
    padding: 6px 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

#appBlock .option-item-img{
    width: 100%;
    border: 1.5px solid #EBEBEB;
    border-radius: 12px;
    box-sizing: border-box;
    margin-top: 30px;
    margin-bottom: 10px;
    height: 300px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
} 

#appBlock .option-item-title {
    color: #E1011B;
    font-weight: 700;
    font-size: 20px;
    padding: 16px 30px 16px 0;
    margin: 0;
    position: relative;
    cursor: pointer;
}

#appBlock .option-item-title:after {
    content: "";
    width: 15px;
    height: 10px;
    position: absolute;
    right: 5px;
    top: calc(50% - 5px);
    background: url(../img/down.svg) center no-repeat;
    background-size: contain;
}

#appBlock .result-option .active-title.option-item-title:after {
    background: url(../img/up.svg) center no-repeat;
    background-size: contain;
}

#appBlock .option-item-description {
    display: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    margin-top: 5px;
}

#appBlock .result-option .active-title ~ .option-item-description {
    display: block;
}
