/* calc Plus */
#heartRate {
    max-width: 660px;
}

#heartRate .p0 {
    padding-left: 0;
    padding-right: 0;
}

#heartRate h3 {
    text-align: center;
    padding: 10px;
    background-color: #CE0012;
    color: white;
    padding-left: 220px;
}

#heartRate h3 img {
    max-height: 23px;
    margin-right: 15px;
    /* padding-top: 10px; */
    top: 29px;
    position: absolute;
    left: 10px;
}

#heartRate h3 span {
    position: relative;
    width: 100%;
    display: block;
    text-align: center;
    margin: 0 auto;
}

#heartRate * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#heartRate .input-wrap {
    text-align: center;
}

#heartRate .input-wrap label.onerow {
    line-height: 48px;
}

#heartRate .input-wrap label {
    font-size: 18px;
    font-family: 'Noto Sans', sans-serif;
}

#heartRate .input-wrap input {
    height: 40px;
    margin-top: 10px;
    padding-left: 5px;
    font-size: 18px;
    text-align: center;
    max-width: 150px;
}

#heartRate .input-wrap input:active, #heartRate .input-wrap input:focus {
    outline: none;
    border: 1px darkgray solid;
}

#heartRate .button-wrap {
    padding-top: 20px;
    text-align: center;
}

#heartRate .button-wrap button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background-color: #7B84FC;
    border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border: none;
    color: white;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
}

#heartRate .button-wrap button:hover {
    background-size: 50%;
    font-size: 22px;
    background-position: 0 -6px;
}

#heartRate .button-wrap button:active, #heartRate .button-wrap button:focus {
    outline: none;
    box-shadow: #CE0012 0 0 5px;
}

#heartRate #calcResult {
    overflow: hidden;
    max-height: 0;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
    -webkit-transition: .5s;
    transition: .5s;
    padding-left: 0;
    padding-right: 0;
}

#heartRate #calcResult .table-wrap {
    padding: 0;
    padding-top: 30px;
    border-collapse: separate;
}

#heartRate #calcResult .table-wrap table {
    border-spacing: 1;
    /* 	font-family: 'Noto Sans', sans-serif; */
    color: white;
    width: 90%;
}

#heartRate #calcResult .table-wrap table td {
    padding: 15px 25px;
    font-size: 20px;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

#heartRate #calcResult .table-wrap table th {
    color: black;
    text-align: left;
}

#heartRate #calcResult .table-wrap table .zone_max {
    background-color: #AFAFB0;
    color: #333;
}

#heartRate #calcResult .table-wrap table .zone5 {
    background-color: #CF0A24;
    color: white;
}

#heartRate #calcResult .table-wrap table .zone4 {
    background-color: #F5A536;
    color: #333;
}

#heartRate #calcResult .table-wrap table .zone3 {
    background-color: #F7E53B;
    color: #333;
}

#heartRate #calcResult .table-wrap table .zone2 {
    background-color: #57E2C1;
    color: #333;
}

#heartRate #calcResult .table-wrap table .zone1 {
    background-color: #4D92DF;
    color: white;
}

#heartRate #calcResult .table-wrap table i {
    color: inherit;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    font-style: normal;
}

@media (max-width: 767px) {
    #heartRate .input-wrap {
        margin-top: 15px;
    }

    #heartRate .button-wrap button:hover {
        background-image: none;
        background-size: 50%;
        font-size: 22px;
        background-position: 0 -6px;
    }

    #heartRate #calcResult .table-wrap table, #heartRate #calcResult .table-wrap table tbody, #heartRate #calcResult .table-wrap table tbody tr, #heartRate #calcResult .table-wrap table tbody th {
        display: block;
        width: 100%;
    }

    #heartRate #calcResult .table-wrap table tbody th {
        min-width: 0 !important;
        text-align: center;
        /* 		border-bottom: 1px gray dashed; */
        border-bottom: 2px solid red;
        /* Параметры линии внизу */
    }

    #heartRate #calcResult .table-wrap table td {
        display: block;
        width: 100%;
        font-size: 16px;
        text-align: center;
    }
}

.red_button {
    background-color: #d10027;
    border: 1px solid #d10027;
    height: auto;
    line-height: 1.5;
    display: inline-block;
    padding: 2%;
    box-sizing: border-box;
    margin: 2%;
    width: 70%;
    text-align: center;
    color: #FFFFFF;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

#zonepuls .result {
    text-transform: uppercase;
    text-align: center;
}

.input_yellow {
    text-align: center;
    display: inline-block;
    background-image: url(/img/heart_input.jpg);
    background-size: 100% 100%;
    outline: none;
    /*убираем стандартную обводку браузера*/
    border: none;
    padding: 20px 10px 30px 10px;
    background-repeat: no-repeat;
    height: 20px;
    /*высота строки ввода*/
    font-size: 1.5em;
    /*размер шрифта*/
    width: 90%;
}

#zonepuls p:not(.hr-max) {
    color: #FFFFFF;
    padding: 1em;
    font-weight: 700;
    font-size: 1.1em;
}

#zonepuls .zone_5 {
    background: #dd0352;
    width: 100%;
}

#zonepuls .zone_4 {
    background: #f8c400;
    width: 100%;
}

#zonepuls .zone_3 {
    background: #a3b928;
    width: 100%;
}

#zonepuls .zone_2 {
    background: #1eb9db;
    width: 100%;
}

#zonepuls .zone_1 {
    background: #b8b8b8;
    text-align: center;
    width: 100%;
}

.hrmax-form {
    border: 1px solid #D6D6D6;
    text-align: center;
    box-sizing: border-box;
    margin: 0 auto;
    width: 50%;
    outline: none;
}

@media screen and (max-width: 600px) {
    .hrmax-form {
        border: 1px solid #D6D6D6;
        text-align: center;
        box-sizing: border-box;
        width: 100%;
    }
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Custom Responsive Gallery */
.custom-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

.custom-gallery figure {
    margin: 0;
    width: 100%;
}

.custom-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.custom-gallery img:hover {
    transform: scale(1.02);
}

.custom-gallery figcaption {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .custom-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-gallery figure {
        flex: 0 0 calc(100% - 40px);
        scroll-snap-align: center;
    }
    
    /* Hide scrollbar but keep functionality */
    .custom-gallery::-webkit-scrollbar {
        height: 4px;
    }
    .custom-gallery::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }
}
