/*
Theme Name:     Krapan Framework
Theme URI:      #
Description:    Бюджетные теплоаккумуляторы
Author:         Peter Krupenia
Author URI:     https://krapan.net
Version:        1.0.0
Text Domain:    kftheme
Tags:           ACF, Krapan Framework
*/

:root {
    --primary: #141414;
    --text: #565656;
    --accent: #b84842;
    --hover: #45505b;
}

::selection {
    color: #ffffff;
    background: var(--accent);
}

::-moz-selection {
    color: #ffffff;
    background: var(--accent);
}

body {
    color: var(--primary);
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 26px;
}

.btn {
    padding: .5rem 2rem;
    font-size: 15px;
}

.btn-primary {
    color: #ffffff;
    background: var(--accent);
}

.btn-primary:hover {
    color: #ffffff;
    background: var(--hover);
}


header {
    position: fixed;
    display: block;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    background: #ffffff;
    border-bottom: 1px solid #f7f7f7;
    box-shadow: 0 0 5px rgba(0, 0, 0, .05);
    z-index: 10;
}

.admin-bar header {
    top: 32px;
}

header img {
    display: block;
    max-width: 140px;
    height: auto;
    margin-right: 20px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul > li {
    padding: 0 25px 0 0;
}

header nav ul > li > a {
    position: relative;
    display: block;
    color: var(--primary);
    font-size: 14px;
}

header nav ul > li > a:hover {
    color: var(--accent);
}

.header-phone {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .07em;
}

.header-phone + .btn {
    margin-left: 20px;
}

.hero {
    background: #f7f7f7;
}

.hero .__inner {
    min-height: 75vh;
}

.hero h1 {
    position: relative;
    margin: 0;
    padding-top: 150px;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .025em;
    text-align: center;
}

.hero h1 span {
    display: block;
}

.hero h1::before {
    position: absolute;
    display: block;
    content: '';
    top: -10px;
    right: 0;
    left: 0;
    width: 280px;
    height: 160px;
    margin: 0 auto;
    background: url(assets/public/images/ta-icon.svg) no-repeat 0 0;
}

@media (max-height: 800px) {
    .hero .__inner {
        min-height: 100vh;
    }
}

.h3 {
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .025em;
}

.h3 span {
    display: block;
}

.pref {
    padding: 70px 0;
}

.pref img {
    width: auto;
    max-height: 500px;
}

.pref-rep {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px 60px;
    font-size: 15px;
    line-height: 1.5;
}

.pref-rep .__item {
    position: relative;
    padding-left: 30px;
}

.pref-rep .__item::before {
    position: absolute;
    display: block;
    content: '';
    top: 10px;
    left: 0;
    width: 16px;
    height: 1px;
    background: var(--accent);
}

.why .h3 {
    position: relative;
    margin-bottom: 90px;
    text-align: center;
}

.why .h3::after {
    position: absolute;
    display: block;
    content: '';
    right: 0;
    bottom: -40px;
    left: 0;
    width: 64px;
    height: 2px;
    margin: 0 auto;
    background: var(--accent);
}

.why .__inner {
    padding: 70px 0 100px;
    color: #ffffff;
    background-color: #242424;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 8px;
    background-blend-mode: overlay;
}

.why-rep {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px 90px;
    justify-content: center;
    font-size: 16px;
    line-height: 1.5;
}

.catalog {
    padding-top: 70px;
}

.catalog-rep {
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 50px 30px;
}

.catalog-rep .__item {
    text-align: center;
}

.catalog-rep .__item-image {
    width: 100%;
    height: 350px;
    background-color: rgba(0, 0, 0, .05);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px auto;
    border-radius: 8px;
    transition: all .15s ease-out;
    background-blend-mode: multiply;
}

.catalog-rep .__item-image:hover {
    background-size: 320px auto;
}

.catalog-rep .__item-meta {
    flex-direction: column;
}

.catalog-rep .__item-title {
    margin: 15px 0 10px;
    font-weight: 400;
}

.catalog-rep .__item-title span {
    display: block;
}

.catalog-rep .__item-price {
    font-size: 19px;
    font-weight: 700;
}

.__item-installment {
    display: inline-block;
    color: var(--hover);
    border-bottom: 1px dashed var(--hover);
    font-size: 13px;
}

.__item-installment:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.catalog-rep .__item-installment {
    margin-top: 15px;
}

.catalog-rep .__item .btn {
    width: auto;
    margin: 10px 0 0 0;
    padding: 5px 40px;
}

.catalog-rep .__item .btn svg {
    display: block;
}

.modal {
    width: 900px;
    padding: 20px;
}

.modal.__with-form {
    width: 600px;
}

.modal.sm {
    width: 500px;
    text-align: center;
}

.__modal-content {
    padding-top: 10px;
    padding-left: 30px;
}

.modal.__with-form .__modal-content,
.modal.sm .__modal-content {
    padding: 40px;
}

.__modal-content .h4 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.__modal-content .h4 + p {
    margin-top: -20px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.modal.sm .__modal-content .h4 + p {
    margin-top: -10px;
    margin-bottom: 0;
}

.__modal-content dl {
    margin: 0 0 40px 0;
}

.__modal-content dt {
    float: left;
    width: 300px;
    margin: 0 0 5px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #f7f7f7;
}

.__modal-content dd {
    margin: 0 0 5px 0;
    padding-bottom: 6px;
    padding-left: 320px;
    border-bottom: 1px solid #f7f7f7;
}

.__modal-content .btn {
    font-weight: 700;
}

.__modal-content .__item-installment {
    margin-left: 20px;
}

.__modal-content .__form {
    padding-top: 30px;
    border-top: 1px solid #f7f7f7;
}


/* ca form styling */
.modal .form-group {
    margin: 0 0 20px;
}

.modal .label_wrap {
    display: inline-block;
    width: 115px;
    margin: 7px 0 0;
    vertical-align: top;
}

.modal .label_wrap label {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.modal .label_wrap label sup {
    top: -1px;
    font-size: 100%;
}

.modal .input_wrap {
    display: inline-block;
    width: 360px;
    vertical-align: middle;
}

.modal input,
.modal select,
.modal textarea {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    border: 1px solid rgba(153, 153, 153, .11);
    -webkit-border-radius: 5px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 20px;
}

.modal input[type="submit"] {
    padding: 10px 20px;
    color: #ffffff;
    background: var(--accent);
    border-color: transparent;
}

.modal input[type="submit"]:hover,
.modal input[type="submit"]:focus {
    color: #ffffff;
    background: var(--accent);
}

.modal input[type="file"] {
    padding: 10px 0;
    background: none;
    border: none;
}

.modal input[type="radio"],
.modal input[type="checkbox"] {
    display: inline-block;
    width: auto;
}

.modal label,
.modal label {
    font-weight: 400;
}

.modal input:focus:not([type="submit"]),
.modal input:focus:not([type="file"]),
.modal textarea:focus {
    border: 1px solid rgba(153, 153, 153, .4);
}

.modal textarea {
    height: 130px;
    resize: none;
}

div.wpcf7 .ajax-loader {
    position: absolute;
}

.form-group.no_mb {
    margin-bottom: 0;
}

span.wpcf7-list-item {
    margin: 0
}

/* form validation */
.wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

input.error,
input.wpcf7-not-valid {
    border: 1px solid #ea0000;
}

span.error,
span.wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0 20px;
    color: #818b90;
    font-size: 10px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap;
}

div.wpcf7-response-output {
    display: none !important;
}

.delivery {
    padding-top: 70px
}

.delivery .__inner {
    padding: 70px 0 70px;
    background: #f7f7f7;
    border-radius: 8px;
}

.delivery .h3 {
    text-align: center
}

.delivery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 50px;
}

.delivery-grid--item {
    flex-direction: column;
    text-align: center;
}

.delivery-grid--item .item-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 50%;
}

.delivery-grid--item .item-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.delivery-grid--item a {
    color: var(--accent);
    font-size: 13px;
    line-height: 16px;
}

.delivery-grid--item a i {
    position: relative;
    top: 2px;
    margin-left: 4px;
    color: var(--primary);
    opacity: .4;
}

.delivery-grid--item ul {
    margin: 15px 0 0 0;
    padding: 15px 0 0 0;
    border-top: 2px solid #f7f7f7;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    list-style: none;
}

.delivery-grid--item ul li {
    position: relative;
    margin-top: 5px;
    padding-left: 18px;
    font-size: 15px;
}

.delivery-grid--item ul > li:before {
    position: absolute;
    content: "";
    top: 9px;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 10;
}

.delivery-self {
    padding: 70px 0 70px;
}

.delivery-self--title {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 32px;
    line-height: 36px;
}

.delivery-self .acf-map {
    width: 100%;
    height: 400px;
}

.payment-inner {
    margin: 0;
}

.payment-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 40px;
    padding: 70px 0 0;
    border-top: 2px solid #f7f7f7
}

.payment-grid--item {
    flex-direction: column;
    padding: 30px 25px 35px;
    text-align: center;
}

.payment-grid--item .thumb {
    margin: 0 0 15px;
}

.payment-grid--item .thumb img {
    max-width: 64px;
    height: auto;
    max-height: 64px;
}

.payment-grid--item .descript {
    font-size: 19px;
    line-height: 26px;
}


.testimonials {
    padding-top: 70px
}

.testimonials .__inner {
    padding: 70px 0 70px;
    background: #f7f7f7;
    border-radius: 8px;
}

.testimonials .h3 {
    text-align: center
}

.testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 70px;
}

.testimonials-grid .__item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.testimonials-grid .__item img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
}

.testimonials-grid .__item .replay_name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.testimonials-grid .__item p {
}

.faq {
    padding: 70px 0;
}

.faq .__item {
    flex-direction: column;
    margin-bottom: 40px;
    padding: 0 70px 0 40px;
}

.faq .__item .h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.faq .__item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}


footer {
    color: #ffffff;
    background: var(--hover);
}

.copyright {
    position: relative;
    padding: 20px 0;
}

.copyright:before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .05);
}

.copyriht_text {
    color: #8a97a3;
    font-size: 12px;
    line-height: 14px;
}

.krupenya_logo,
.krupenya_logo a {
    display: inline-block;
    color: #8a97a3;
    font-size: 12px;
    line-height: 14px;
}

.krupenya_logo a {
    text-decoration: underline;
}

.krupenya_logo a:hover, .krupenya_logo a:focus {
    text-decoration: none;
}

.krupenya_logo img {
    margin-right: 7px;
}

.copyright .rel {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-box-align: center;
    -ms-flex-align: center;
}


.p__404_inner {
    min-height: 100vh;
}

.p__404_inner h1 {
    margin: 0;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .025em;
    text-align: center;
}

.p__404_inner p {
    margin-top: 30px;
    font-size: 17px;
}

.p__404_inner a {
    color: var(--accent);
}

.p__404_inner a:hover {
    color: var(--hover);
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pref-rep,
    .why-rep {
        grid-gap: 30px;
    }

    .catalog-rep {

    }

    .delivery-self iframe {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero h1 {
        font-size: 54px;
    }

    .hero .__inner {
        min-height: 650px;
        padding-top: 70px;
    }

    .pref {
        padding: 40px 0;
    }

    .pref .h3 {
        text-align: center;
    }

    .pref-rep {
        grid-gap: 30px;
    }

    .why .__inner {
        padding: 40px 0 70px;
    }

    .why-rep {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
    }

    .catalog {
        padding-top: 40px;
    }

    .catalog-rep {
        grid-template-columns: repeat(3, 1fr);
    }

    .delivery .__inner {
        padding: 40px 0 40px;
    }

    .delivery-self {
        padding: 40px 0 0;
    }

    .delivery-self iframe {
        width: 100%;
        margin-top: 30px;
    }

    .payment-grid {
        padding: 40px 0 0;
        border-top: none;
    }

    .payment-grid--item {
        padding: 0;
    }

    .payment-grid--item .descript {
        font-size: 15px;
        line-height: 1.5;
    }

    .testimonials {
        padding-top: 40px;
    }

    .testimonials .__inner {
        padding: 40px 0 40px;
    }

    .testimonials-grid {
        grid-template-columns: 100%;
        grid-gap: 40px;
    }

    .testimonials-grid .__item {
        flex-direction: row;
        padding: 0 40px;
    }

    .testimonials-grid .__item img {
        margin-right: 30px;
    }

    .faq {
        padding: 40px 0 40px;
    }

    .faq .__item {
        padding: 0 40px;
    }

    .modal {
        width: 600px;
        padding: 30px 30px 30px;
    }

    .__modal-content {
        padding: 0;
    }

    .__modal-content a {
        display: inline-block;
        margin-bottom: 30px;
        color: var(--accent);
    }
    .__modal-content .__item-installment {
        margin: 0 0 0 30px;
    }

    .modal.__with-form .__modal-content,
    .modal.sm .__modal-content{
        padding: 0;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero .__inner {
        min-height: 450px;
        padding-top: 70px;
    }

    .h3 {
        font-size: 22px;
    }

    .pref {
        padding: 40px 0;
    }

    .pref .h3 {
        text-align: center;
    }

    .pref-rep {
        grid-template-columns: 100%;
        grid-gap: 10px;
    }

    .why .__inner {
        padding: 40px 0 70px;
    }

    .why-rep {
        grid-template-columns: 100%;
        grid-gap: 15px;
    }

    .catalog {
        padding-top: 40px;
    }

    .catalog-rep {
        grid-template-columns: 100%;
    }


    .delivery .__inner {
        padding: 40px 0 40px;
    }

    .delivery-grid {
        grid-template-columns: 100%;
        grid-gap: 40px;
    }

    .delivery-grid--item .item-title {
        font-size: 19px;
    }

    .delivery-self {
        padding: 40px 0 0;
    }

    .delivery-self--title {
        text-align: center;
    }

    .delivery-self iframe {
        width: 100%;
        margin-top: 30px;
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 0 0;
        border-top: none;
    }

    .payment-grid--item {
        padding: 0;
    }

    .payment-grid--item .descript {
        font-size: 15px;
        line-height: 1.5;
    }

    .testimonials {
        padding-top: 40px;
    }

    .testimonials .__inner {
        padding: 40px 0 40px;
    }

    .testimonials-grid {
        grid-template-columns: 100%;
        grid-gap: 40px;
    }

    .testimonials-grid .__item img {
        margin-right: 30px;
    }

    .faq {
        padding: 40px 0 40px;
    }

    .faq .__item {
        padding: 0;
    }

    footer {
        text-align: center;
    }

    .copyriht_text {
        margin-bottom: 20px;
    }

    .krupenya_logo {
        text-align: center;
    }

    .modal,
    .modal.__with-form {
        width: 100%;
        padding: 15px;
    }

    .__modal-content {
        padding: 0;
    }

    .__modal-content a {
        display: inline-block;
        margin-bottom: 30px;
        color: var(--accent);
    }

    .__modal-content dt {
        float: none;
        width: 100%;
        margin: 0;
        padding-bottom: 0;
        border-bottom: none;
        opacity: .7;
        font-size: 19px;
    }

    .__modal-content dd {
        padding-left: 0;
    }

    .__modal-content .__item-installment {
        margin: 20px 0 0;
    }

    .__modal-content .btn {
        width: 100%;
    }

    .modal.__with-form .__modal-content,
    .modal.sm .__modal-content {
        padding: 0;
    }

    .modal .input_wrap {
        width: 100%;
    }

    .p__404_inner h1 {
        font-size: 32px;
        font-weight: 900;
        line-height: 1.3;
    }
    .p__404_inner p{
        text-align: center;
    }
}