div.contheader {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    z-index: 1; /* контент выше фона */
    background-image: url('/static/img/packet-bg-1.webp');
    background-size: 950px;
    background-position: 0 50px;
    background-repeat: no-repeat, no-repeat;
}

div.contheader::before {
  content: "";
  position: absolute;
  bottom: 0;    /* выступает сверху */
  right: 0;        /* начинается от левого края контейнера */
  width: 780px;   /* ширина экрана */
  height: 780px;  /* чуть больше контейнера */
  background-image:    url('/static/img/packet-bg-1.webp');
  background-position: top left;
  background-repeat: no-repeat, no-repeat;
  background-size: 780px, 780px;
  transform: rotate(150deg);
  z-index: -1;
  pointer-events: none;
}

span.header{
    font-family: FormularMedium;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    line-height: 100%;
    display: block;
}

span.sub {
display: block;
font-family: Formular;
font-weight: 400;
font-style: Regular;
font-size: 22px;
line-height: 100%;
letter-spacing: 0%;
}

div.packet-request {
    width: 487px;
    height: 567px;
    padding-bottom: 50px;
    padding-left: 43px;
    padding-right: 44px;
    background: #FFF;
    border: 1px solid #17A85B38;
    border-radius: 15px;
    box-shadow: 0px 4px 11.4px 0px #17A85B66;
}

div.packet-request #modal-send {
    padding: 12px 24px;
    font-size: 16px;
    line-height: 5px;
    background: #17A85B;
    color: #fff;
    height: 50px;
    border-radius: 10px;
    width: 400px;
}

div.packet-request h5 {
    font-family: FormularBold;
    text-transform: unset;
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: 0%;
    color: #17A85B;
    text-align: center;
    padding-top: 35px;
}

div.packet-request label {
    font-family: Formular;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

div.packet-request input[type="text"] {
  border-style: solid;          /* общий стиль границы */
  border-width: 0 0 1px 0;    /* top right bottom left */
  border-color: #B2B2B2;        /* общий цвет */
  border-radius: 0;
  padding: 18px 0 6px 0;
}


div.packet-modal-body {
    position: relative;
    flex: 1 1 auto;
}

 div.packet-modal-body input[type="text"].phonemask::-webkit-input-placeholder, div.packet-modal-body input[type="text"]::-webkit-input-placeholder {
    color: #B2B2B2;
    opacity: 1;
    font-size: 16px;
}

 div.packet-modal-body input[type="text"] {
    width: 400px;
    gap: 10px;
    background: none;
}

div.contdev {
    width: 100%;
    height: 1026px;
    background: #F4F5F7;
    z-index: 1;
    position: relative;
}

.contdev h4,.tariff h4, .cases h4, .about-div h4 {
    padding-top: 75px;
    /* font-family: Inter; */
    font-weight: 600 !important;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: none;
}

div.contdev p {
    font-family: Formular;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #2B2A29;
    padding-top: 16px;

}
div.silver {
    background-color: #F4F5F7;
}
div.newbanner-container {
    background: #17A85B;
    /* padding-top: 100px; */
    height: 492px;
    margin-top: 50px;
}

div.newbanner-container .new-banner-padding p:first-child {
    font-family: FormularBold;
    width: 438px;
    font-weight: 700;
    font-size: 30px;
    line-height: 35px;
    letter-spacing: 0px;
}

div.newbanner-container .new-banner-padding p:nth-child(2) {
    font-family: Formular;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0px;
    width: 301px;
}

div.nimg {
    position: absolute;
    z-index: 2;
    margin-top: -50px;
    padding-left: 80px;
}
div.nimg img {
    border-radius: 20px;
}

div.newbanner-container .container .row{
    background: none !important;
}

div.newbanner-container .container > .row > div:nth-child(2){
    padding-left: 200px;
    padding-top: 50px;
}

.new-banner-padding {
    margin-top: 100px;
    padding-left: 120px !important;
    padding-top: 215px;
    color: #FFF;
}
.newbanner-container .polcol,.newbanner-container .polcol a {
    font-family: Formular;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.newbanner-container label {
    color: #FFF;
    font-family: Formular;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0px;
    padding-bottom: 16px;
    display: block;
}

.newbanner-container .consbut button {
    width: 298px;
    height: 55px;
    border-radius: 10px;
    background: rgba(43, 42, 41, 1);
    color: #FFF;
    border: none;
    margin-top: 10px;
}

.newbanner-container .form input[type=text],.newbanner-container .form input[type=email] {
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    background: 0 0;
    color: #fff;
    width: 100%;
    font-size: 16px;
    padding-bottom: 12px;
    width: 400px;
}

.newbanner-container .form input[type=text]::-webkit-input-placeholder,.newbanner-container .form input[type=email]::-webkit-input-placeholder {
    font-family: Formular;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.5px;
    color: #FFFFFF66;
}

.newbanner-container .form-check-input[type="checkbox"] {
    box-sizing: border-box;
    width: 11px;
    flex-shrink: 0;
    height: 11px;
    border: 1px solid #FFF !important;
    -moz-appearance: none;
    -webkit-appearance: none;
    -o-appearance: none;
    border-radius: 3px;
}

.newbanner-container .form-check-input:checked {
    background: url("/static/img/checked.svg") !important;
    background-repeat: no-repeat !important;
    padding: 2px;
    border: 2px solid #17A85B !important;
    box-shadow: 0 0 0 1px #FFF;
}

div.newbanner-container .container  .row  .row  .row  div:nth-child(1){
    width: 20px;
}

div.contdev .icon {
    background: #17A85B;
    border-radius: 10px;
    height: 65px;
    width: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.contdev h5 {
    font-family: FormularBold;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    padding-top: 20px;
    text-transform: none;
}

div.contdev .row p {
    font-family: Formular;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.5px;

}

div.tabdevices .row div.green {
    background-color: #17A85B;
    border-radius: 14px;
    color: #FFF;
    height: 100%;
    background-image: url("/static/img/module-bg.webp");
    font-family: FormularBold;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.5px;
    background-position: bottom right;
    background-repeat: no-repeat;

}
div.tabdevices .row>div {
    height: 320px;
    width: 460px;
}

div.tabdevices .row>div:nth-child(n+4) {
    padding-top: 30px;
}

div.tabdevices .whitecol {
    background-color: #FFF;
    border-radius: 14px;
    height: 100%;
}

div.tariff {
    background: #fafafa;
    width: 100%;
    padding-bottom: 100px;
}

div.tariff > p {
    padding-top: 15px;
    font-family: Formular;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: rgba(43, 42, 41, 1);
}

div.tariff .row > [class^="col-"] {
    height: 691px;
}

div.tariff .row .tariffc {
    background-color: #FFF;
    height: 100%;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* распределяет элементы по вертикали */
    height: 100%; /* или фиксированную высоту, если нужно */
}

.tariffc > .d-flex:last-child {
  margin-top: auto; /* прижимает нижний блок вниз */
}

div.tariff .row > div:nth-child(1) .tariff-img {
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0)),url("/static/img/child.webp");
    height: 346px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

div.tariff .row > div:nth-child(2) .tariff-img {
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0)),url("/static/img/des.webp");
    height: 346px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

div.tariff .row > div:nth-child(3) .tariff-img {
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0)),url("/static/img/office.webp");
    height: 346px;
    border: none;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
div.tariff .row > div > div:nth-child(1) hr {
    background-color: #17A85B;
    height: 2px;
    width: 415px;
    margin: 0 auto; 
    opacity: 1;
}

div.tariff .row > div > div > div:nth-child(2) {
font-family: Formular;
font-weight: 400;
font-size: 16px;
line-height: 18px;
letter-spacing: 0.2px;
height: 128px;
}

div.tariff .row > div > div > div:nth-child(4) {
font-family: Formular;
font-weight: 400;
font-size: 14px;
line-height: 16px;
letter-spacing: 0.2px;
}

div.tariff .row > div > div > div:nth-child(5) button {
    position: absolute;
    width: 238px;
    height: 55px;
    border-radius: 10px;
    background-color: #17A85B;
    color: #FFF;
    border: none;
    font-family: FormularBold;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.2px;
    text-align: center;
    margin-top: -115px;
}


div.tariff .tariff-title {
    width: 283px;
    background-color: #FFF;
    text-align: center;
    font-family: FormularMedium;
    height: 55px;
    color: #17A85B;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.2px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    
}

div.cases {
    background-color: #F4F5F7;
    padding-bottom: 100px;
}

.scroll-container {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  gap: 20px; /* отступ между элементами */
  padding-right: 0; /* убираем пустое место справа */
  width: 100%; /* адаптивная ширина */
  box-sizing: border-box;
}

.item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* распределяет элементы по вертикали */
    height: 326px;
    flex: 0 0 calc((100% - 3 * 20px) / 4); 
}

  .item div > img:nth-child(1) {
    width: 100%;
  }

.item div {
/* background: #ddd; */
/* width: 303px; */
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
border-radius: 20px;
}
.cases .item > .d-flex:last-child {
  margin-top: auto; /* прижимает нижний блок вниз */
}

.item p {
    font-family: FormularMedium;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.2px;
    color: #17A85B;
    padding-top: 20px;
}

.item div img {
    overflow: hidden;
    /* max-width: 303px; */
    border-radius: 20px;
    object-fit: cover; /* чтобы не деформировалось */
  display: block;
}

.cases .position-relative {
  position: relative;
  overflow: visible !important;
  margin-top: 50px;
}

.cases .case-btn {
    background-color: #17A85B;
    color: #FFF;
    border: none;
    border-radius: 20px;
    width: 65px;
    text-align: right;
    height: 29px;
    padding-right: 10px;
    text-align: right;
    /* position: absolute; */
}

.cases .case-btn img {
    float: right;
}

.bright {
    display: flex;
    justify-content: flex-end; /* прижать кнопку к правому краю */
    margin-top: auto;          /* прижать к низу блока */
}

.arrow-btn {
font-family: ui-monospace;
  position: absolute;
  top: -50px;
  z-index: 1000;
  /* background-color: #17A85B; */
  color: #B2B2B2;
  border: thin solid #B2B2B2;
  border-radius: 50px;
  width: 30px;
  height: 30px;
  /* border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
}
#prevBtn { right: 40px; }
#nextBtn { right: 0px; }

div.about-div {
    background-color: #FFF;
}

div.about-div .timg {
    float: right;
    width: 500px;
    /* padding-right: 180px; */
}

div.about-div .col div {
    font-family: Formular;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0.2px;

}

div.about-div .col span a {
  font-family: Formular;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.2px;
    text-decoration: none;
  
}

div.about-div .col div.text2 {
    font-size: 16px;
    font-family: Formular;
    line-height: 20px;
}


@media (max-width: 767px) and (min-width: 100px){
    div.cases {
        padding-bottom: 30px;
    }

    div.nimg {
        padding-left: 0px !important;
        margin-top: 0px;
        position: relative;
    }

    div.nimg img {
        width: 335px;
        height: 100%;
        border-radius: 0px;
    }

    div.newbanner-container {

        height: 814px;
    }

    .new-banner-padding {
        padding-top: 0px !important;
        padding-left: 0px !important;
        margin-top: 30px !important;
    }

    div.newbanner-container .new-banner-padding p:first-child {
        font-family: FormularMedium;
        font-size: 21px;
        line-height: 24px;
        letter-spacing: 0.2px;
        width: 375px;
    }
    div.newbanner-container .new-banner-padding p:nth-child(2) {
        font-family: Formular;
        font-size: 16px;
        line-height: 19px;
        letter-spacing: 0.2px;
    }

    div.newbanner-container .container > .row > div:nth-child(2) {
        padding-left: 0px !important;
        padding-top: 0px !important;
    }

    .newbanner-container label {
        font-size: 14px;
        line-height: 16px;
        padding-bottom: 6px;
    }

    .newbanner-container .consbut button {
        width: 335px;
        height: 50px;
    }

    .newbanner-container .form-check-input[type="checkbox"] {
        margin-top: 10px;
    }

    .newbanner-container .polcol, .newbanner-container .polcol a {
        letter-spacing: 0.2px;
    }

    .newbanner-container .form input[type=text],.newbanner-container .form input[type=email] {
        font-size: 16px;
        padding-bottom: 4px;
        width: 335px;
    }

    .newbanner-container .form input[type=text]::-webkit-input-placeholder,.newbanner-container .form input[type=email]::-webkit-input-placeholder {
        font-size: 14px;
        line-height: 16px;
        letter-spacing: 0.3px;
        padding-bottom: 0px;
    }

    div.packet-request {
        width: 335px;
        height: 555px;
        padding-bottom: 50px;
        padding-left: 10px;
        padding-right: 10px;
        background: #FFF;
        border: 1px solid #17A85B38;
        border-radius: 15px;
        box-shadow: 0px 4px 11.4px 0px #17A85B66;
    }

    div.packet-modal-body input[type="text"] {
        width: 310px;
        background: none;
    }

    div.packet-request #modal-send {
        padding: 12px 24px;
        font-size: 16px;
        line-height: 5px;
        background: #17A85B;
        color: #fff;
        height: 50px;
        border-radius: 10px;
        width: 310px;
    }

    div.contheader {
        background: none;
    }
    div.contheader::before {
        background: none;
        width: 0;
        height: 0;
    }

    div.contheader .polcol {
        font-size: 12px !important;
    }
    .item {
        flex: 0 0 100%; /* 1 элемент */
        height: 320px;
    }

    .scroll-container {
        gap: 0px;
    }

    div.contdev {
    height: auto;
  }
    div.contheader {
    height: auto;
  }
    span.header{
    font-size: 17px;
  }

  span.sub {
    font-size: 16px;
  }
  div.tabdevices .row>div:nth-child(n+1) {
    padding-top: 30px;
    }

    div.contdev h5 {
        font-size: 18px;
    }

    div.tabdevices .row>div>div:nth-child(1) {
        height: 241px;
    }

    div.tabdevices .row>div {
        height: 260px;
    }

    div.contdev p { 
        padding-top: 4px;
    }

    div.contdev .row p {
        font-size: 14px;
        line-height: 16px;
    }

    div.contdev .icon {
        width: 51px;
        height: 51px;
    }

    .whitecol {
        padding-top: 20px !important;
    }

    .cases .position-relative {
        position: relative;
        overflow: visible !important;
        margin-top: 20px;
    }

    .arrow-btn {
        font-family: ui-monospace;
        position: absolute;
        top: -40px;
        z-index: 1000;
        /* background-color: #17A85B; */
        color: #B2B2B2;
        border: thin solid #B2B2B2;
        border-radius: 100px;
        font-size: 14px;
        width: 27px;
        height: 27px;
        }
    #prevBtn { right: 40px; }
    #nextBtn { right: 0px; }

    div.about-div .timg {
        float: none;
        width: 335px;
    }

    div.about-div .col div {
        font-size: 21px;
    }

    div.tariff .row > div > div:nth-child(1) hr {
        width: 326px;
    }

    div.icon img {
        max-width: 35px;
        max-height: 35px;
    }

}

@media (min-width: 768px) and (max-width: 1400px) {
    .contdev h4,.tariff h4, .cases h4, .about-div h4 {
        font-size: 18px !important;
    }

  .item {
    height: 350px;
    flex: 0 0 calc((100% - (1 * 20px)) / 2); /* 2 элемента + 1 gap */
  }

  .item div > img:nth-child(1) {
    width: 100%;
  }

  div.contdev {
    height: auto;
  }

  div.contheader {
    height: auto;
    padding-bottom: 50px;
    background-size: 600px;
  }

  div.contheader::before {
    width: 580px;
  }

  span.header{
    font-size: 17px;
  }
  span.sub {
    font-size: 16px;
  }

  .tariff > .container > p {
    font-size: 14px;
  }

  div.tariff .tariff-img {
    height: 190px !important;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    /* background-size: 100% !important; */
    background-size:  cover !important;
}

div.tariff .row > div > div > div:nth-child(2) {
font-size: 12px;
line-height: 14px;
}

div.tariff .row > div > div:nth-child(1) hr 
{
    width: 210px;
}

div.tariff .row > div > div > div:nth-child(4) {
font-size: 11px;
line-height: 13px;
}

div.tariff .row > [class^="col-"] {
height: 520px;
}
div.tariff .row > div > div > div:nth-child(5) button {
    width: 138px;
    height: 36px;
    font-size: 11px;
    margin-top: -80px;
}

div.tariff .tariff-title {
    width: 160px;
    font-size: 12px;
    height: 36px;
    letter-spacing: 0px;
}

  div.nimg {
    position: absolute;
    z-index: 2;
    margin-top: -30px;
    padding-left: 30px;
}

div.nimg img {
    width: 300px;
    height: 100%;
}

div.newbanner-container {
height: 320px
}

.new-banner-padding {
    margin-top: 0px;
    padding-left: 50px !important;
}

.newbanner-container .form input:focus,.newbanner-container .form textarea:focus {
    font-size: 14px !important;
}

div.newbanner-container .container > .row > div:nth-child(2) {
padding-left: 30px !important;
padding-top:30px;
}

.form-label {
    margin-bottom: 0px !important;
}

.new-banner-padding {
padding-top: 190px;
}

div.newbanner-container .new-banner-padding p:first-child {
font-size: 18px;
width: 340px;
line-height: 20px;
}

div.newbanner-container .new-banner-padding p:nth-child(2) {
font-size: 14px;
}

.newbanner-container label {
font-size: 12px;
line-height: 14px;
padding-bottom: 0px;
}

.newbanner-container .form input[type=text],.newbanner-container .form input[type=email] {
    width: 100%;
    font-size: 16px;
    padding-bottom: 4px;
    width: 340px;
}

.newbanner-container .form input[type=text]::-webkit-input-placeholder,.newbanner-container .form input[type=email]::-webkit-input-placeholder {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.3px;
    padding-bottom: 0px;
}

.newbanner-container .consbut button {
width: 250px;
height: 40px;
font-size: 14px;
}

div.newbanner-container .container .row .row .row div:nth-child(1) {
width: 12px;
}

.newbanner-container .polcol, .newbanner-container .polcol a {
font-size: 8px;
line-height: 11px;
}
  div.packet-request {
    width: 370px;
    height: 485px;
    padding-bottom: 20px;
    padding-left: 43px;
    padding-right: 44px;
    background: #FFF;
    border: 1px solid #17A85B38;
    border-radius: 15px;
    box-shadow: 0px 4px 11.4px 0px #17A85B66;
}

div.packet-request #modal-send {
    width: 285px;
}

div.packet-modal-body input[type="text"] { 
    width: 285px;
}
div.packet-request h5 {
font-size: 19px;
}

div.packet-request input[type="text"] {
    padding: 0;
}

div.tabdevices .row>div {
width: 370px;
}

div.tabdevices .row>div:nth-child(n+3) {
    padding-top: 30px;
}

div.contdev .row p {
    font-size: 14px;
}

    div.about-div .timg {
        float: none;
        width: 345px;
    }

    div.about-div .col div {
        font-size: 18px;
        line-height: 20px;
    }

    div.about-div .col div.text2 {
        font-size: 14px;
        line-height: 16px;
    }


}