/*body{*/
/*    width: 360px;*/
/*    outline: 1px solid red;*/
/*    margin: 0 auto;*/
/*}*/

.programms__collection,
.about-us__collection {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}


.programms__item{
    position:relative;
}

.programms__onprog{
    position: absolute;
    width:100%;
    left:0;
    right:0;
    font-size: 23px;
    bottom: 20px;
    background: #ffffff;
}
form {
    text-align: center;
}

.red {
    color: #f00;
}

input {
    width: 280px;
    text-align: left;
}

.underheader {
    border-bottom: 30px solid rgb(178, 30, 182);
    min-width: 1024px;
}

.headin1 {
    margin: 70px 0;
}

.header {
    height: 140px;
    color: #fff;
    background-color: #fff;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(198, 0, 136)), to(rgb(150, 0, 97)));
    background-image: -webkit-linear-gradient(top, rgb(198, 0, 136), rgb(150, 0, 97));
    background-image: -o-linear-gradient(top, rgb(198, 0, 136), rgb(150, 0, 97));
    background-image: linear-gradient(to bottom, rgb(198, 0, 136), rgb(150, 0, 97));
    background-repeat: repeat-x;
    border-bottom: 1px solid rgb(167, 49, 120);
    box-shadow: 0 1px 0 rgb(108, 0, 71), inset 0 5px 5px rgba(0, 0, 0, 0.4);
    min-width: 1024px;
}

.descr {
    font-size: 22px;
    color: #fff;
    padding-top: 50px;
    margin-top: 0;
    margin-left: -50px;
}

.backonhead {
    position: absolute;
    top: 150px;
    background-color: rgb(0, 117, 156);
    width: 100%;
    height: 68px;
    z-index: 0;
}

.first-screen {
    height: 617px;
    min-width: 1024px;
    margin: 0 auto;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(../img/bg-first.jpg);
    box-shadow: inset 0 5px 5px rgba(0, 0, 0, .5), inset 0 -5px 5px rgba(0, 0, 0, .5);
    z-index: 1000;
}

.mart30 {
    margin: 30px 0;
}

.mart60 {
    margin-top: 60px;
}

.padg40 {
    padding: 0 40px;
}

.descriptor {
    display: block;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
}

.clamp {
    background: url(../img/bg-clamp.jpg) no-repeat center center;
    background-size: cover;
    min-width: 1024px;
    height: 490px;
}

.onprog {
    font-size: 27px;
    position: absolute;
    bottom: 20px;
    left: 25px;
    width: 300px;
    background-color: #FFF;
}

.menu {
    position: sticky;
    top: 0;
    left: 0;
    background-image: -moz-linear-gradient(90deg, rgb(177, 187, 187) 0%, rgb(242, 247, 251) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(177, 187, 187) 0%, rgb(242, 247, 251) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(177, 187, 187) 0%, rgb(242, 247, 251) 100%);
    box-shadow: 0px -5px 6px rgba(0, 0, 0, .5);
    min-width: 1024px;
    height: 36px;
    z-index: 1200;
    text-align: center;
}

.inmenu {
    display: flex;
    justify-content: space-between;
    width: 1024px;
    margin: 0 auto;
    font-size: 20px;
    padding-top: 5px;
}

.inmenu > a {
    /*padding:0 20px;*/
    color: #7d2668;
}

.forma {
    text-align: center;
    position: absolute;
    z-index: 100;
    display: block;
    top: 85px;
    width: 269px;
    height: 341px;
    right: 140px;
    padding: 20px 39px;
    color: #000;
    border-radius: 10px;
    background-color: #fff;
    background-image: -moz-linear-gradient(90deg, rgb(176, 200, 223) 0%, rgb(208, 222, 235) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(176, 200, 223) 0%, rgb(208, 222, 235) 100%);
    background-image: -ms-linear-gradient(90deg, rgb(176, 200, 223) 0%, rgb(208, 222, 235) 100%);
    background-repeat: repeat-x;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, .5);
}

.modal > .forma {
    position: relative;
    margin: 100px auto 0;
    top: inherit !important;
    left: inherit !important;
    right: inherit !important;
}


.polit {
    font-size: 14px;
}

.podchislo {
    background-image: url(../img/podchislo.png);
    background-repeat: no-repeat;
    padding: 1px 17px 5px;
    color: #000;
    font-size: 32px;
    font-weight: 700;
}

.akcia {
    padding: 20px 0 0 20px;
    position: absolute;
    top: 190px;
    left: 230px;
    width: 500px;
    height: 275px;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
}

.akcia-logo {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 12px;
    padding-left: 12px;
    margin: -5px 0 20px;
}

.pinform2 {
    padding: 12px 8px 15px;
    background-image: url(../img/bg-des-form.png);
    background-position: top center;
    background-repeat: no-repeat;
    font-size: 28px;
    font-weight: 300;
}

.oneprim {
    display: flex;
    text-align: left;
    font-size: 25px;
    line-height: 1.8em;
    padding-left:0!important;
}

.oneprim > img {
    margin-right: 10px;
}

.headin {
    color: #fff;
    font-size: 29px;
    text-align: center;
    margin: 50px auto 0;
    width: 750px;
}

.purple-bg {
    padding: 7px 15px;
    background-color: rgb(178, 30, 182, 0.5);
    font-weight: 700;
}

.how-we {
    background-image: url(../img/bg-how.png);
    min-width: 1024px;
    background-position: top center;
    background-size: 100% 100%;
    height: 556px;
}

.pinhow {
    position: absolute;
    top: 285px;
    color: #fff;
    font-size: 19px;
}

.opiour {
    background-image: url(../img/texture.png);
    background-repeat: repeat;
    min-width: 1024px;
    background-position: top left;
}

.opinion {
    padding: 20px 40px;
    margin: 20px 30px;
    background-color: #fff;
    border: 2px solid #888;
    border-radius: 10px;
    height: 270px;
}

.borbotyel {
    border-bottom: 5px solid #ff0;
    text-shadow: 0 0 20px #fff;
}

.borbotred {
    border-bottom: 2px solid rgb(190, 63, 190);
}

.btn-red {
    width: 100%;
    padding: 10px 25px;
    margin-top: 15px;
    font-size: 22px;
    font-family: 'Roboto Condensed';
    color: #000;;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
    background-color: #fd0;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(rgb(255, 214, 0)), to(rgb(255, 136, 0)));
    background-image: -webkit-linear-gradient(top, rgb(255, 214, 0), 0%, rgb(255, 136, 0), 100%);
    background-image: -moz-linear-gradient(top, rgb(255, 214, 0) 0%, rgb(255, 136, 0) 100%);
    background-image: linear-gradient(to bottom, rgb(255, 214, 0) 0%, rgb(255, 136, 0) 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff0000', endColorstr='#ffff0000', GradientType=0);
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-bottom: 3px solid rgba(0, 0, 0, .4);
}

.btn-red:hover,
.btn-red:focus {
    margin-top: 15px;
    color: #000;
    background-color: #fa0;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(rgb(255, 214, 0)), to(rgb(255, 136, 0)));
    background-image: -webkit-linear-gradient(top, rgb(255, 214, 0), 0%, rgb(255, 136, 0), 100%);
    background-image: -moz-linear-gradient(top, rgb(255, 214, 0) 0%, rgb(255, 136, 0) 100%);
    background-image: linear-gradient(to bottom, rgb(255, 214, 0) 0%, rgb(255, 136, 0) 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff0000', endColorstr='#ffff0000', GradientType=0);
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-bottom: 3px solid rgba(0, 0, 0, .4);
}

.btn-red:active,
.btn-red.active {
    margin-top: 17px;
    color: #000;
    background-color: #fe0;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(rgb(255, 214, 0)), to(rgb(255, 136, 0)));
    background-image: -webkit-linear-gradient(top, rgb(255, 214, 0), 0%, rgb(255, 136, 0), 100%);
    background-image: -moz-linear-gradient(top, rgb(255, 214, 0) 0%, rgb(255, 136, 0) 100%);
    background-image: linear-gradient(to bottom, rgb(255, 214, 0) 0%, rgb(255, 136, 0) 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff0000', endColorstr='#ffff0000', GradientType=0);
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-bottom: 1px solid rgba(0, 0, 0, .4);
}

/* Мобильная адаптация. Вся вёрстка выше рассчитана жёстко на 1024px
   (min-width:1024px почти на каждой секции + .forma/.akcia/.pinhow/.onprog
   спозиционированы absolute по фикс. px-координатам) — ниже 1024px это
   даёт горизонтальный скролл и наложение блоков друг на друга. Вместо
   точечных правок под конкретную ширину — переводим всё в один столбец;
   проверено от 360px и выше. */
@media (max-width: 1023px) {
    body {
        overflow-x: hidden;
    }

    .container {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .underheader,
    .header,
    .first-screen,
    .clamp,
    .menu,
    .how-we,
    .opiour {
        min-width: 0;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        float: none;
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* шапка и подвал (один и тот же .header переиспользуется дважды):
       3 колонки друг под другом вместо в ряд */
    .header {
        height: auto;
        padding: 15px 0;
        text-align: center;
    }

    .header .col-4 {
        margin-bottom: 10px;
    }

    .header .col-4:first-child > div {
        margin: 0 auto;
    }

    .header .col-4:last-child {
        margin-bottom: 0;
    }

    .header .text-right {
        text-align: center;
    }

    .descr {
        margin-left: 0;
        padding-top: 0;
        text-align: center;
    }

    /* якорное меню было фикс. шириной 1024px в одну строку */
    .menu {
        position: static;
        height: auto;
        min-width: 0;
        padding: 8px 0;
    }

    .inmenu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 6px 10px;
    }

    .inmenu > a {
        padding: 4px 8px;
    }

    /* первый экран: заголовок/акция/форма заявки были наложены поверх
       фона через position:absolute — переводим в обычный поток друг
       под другом (порядок в html уже соответствует нужному) */
    .first-screen {
        height: auto;
        padding: 20px 0 30px;
    }

    .headin {
        width: auto;
        margin: 20px 15px;
        font-size: 20px;
    }

    .clamp {
        height: auto;
        padding: 20px 0;
    }

    .akcia,
    .forma {
        position: static;
        width: auto;
        height: auto;
        margin: 0 15px 20px;
    }

    .akcia {
        padding: 15px;
    }

    .forma {
        padding: 20px 15px;
    }

    body .hasCountdown {
        width: auto;
        max-width: 270px;
        margin: 0;
    }

    input {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }

    /* список услуг: у каждой иконки был свой ручной padding-left под
       десктоп-раскладку (80–115px) — на мобильном это просто пустое
       место, схлопываем в один общий отступ */
    .oneprim {
        padding-left: 45px !important;
        font-size: 18px;
        line-height: 1.6em;
    }

    /* подпись поверх картинки программы была фикс. шириной 300px */
    .onprog {
        width: auto;
        left: 15px;
        right: 15px;
    }

    /* диаграмма 947px с подписями по абсолютным координатам не
       масштабируется адекватно — прячем картинку, подписи показываем
       обычным вертикальным списком (их порядок в html уже совпадает
       с порядком шагов на диаграмме слева направо) */
    .how-we {
        height: auto;
        padding: 20px 0;
    }

    .how-we img {
        display: none;
    }

    .pinhow {
        position: static;
        display: block;
        margin: 0 15px 12px;
        padding: 10px 15px;
        background-color: rgba(0, 0, 0, .35);
        border-radius: 6px;
    }

    /* отзывы: аватар+текст были в 2 колонки фикс. высотой 270px */
    .opinion {
        height: auto;
        margin: 15px 10px;
        padding: 15px 20px;
    }
}
