.tiles_children_wrapper {
    margin-top: 21px;
    width: 100%;
    margin-bottom: 10vw;
}

.tiles_children_grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    margin: 0 auto;
    width: 100%;
    /*max-width: 1400px;*/
}

.a_tile {
    display: block;
    position: relative;
    transition: 0.3s ease;
}


.a_tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFC9;
    z-index: 4;
    opacity: 0;
    transition: .3s ease;
}

.a_tile:hover::before {
    opacity: 1;
}

.tile_content {
  position: relative;
  z-index: 4;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 74.68%;
  width: calc(90% + 16px);
  position: relative;
  right: -16px;
  transition: 0s;
  padding-right: calc(20px + 16px);
  padding-left: 24%;
}


.tile_content h2 {
    font-family: "Ony One";
    font-weight: 500;
    color: #000000;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    transition: 0.2s ease;
    /*margin-left: 18%;*/
    margin-bottom: 1vw;
}

.tile_content p {
    font-family: "Ony One";
    font-weight: 400;
    /*font-size: max(12px, 1.2vw);*/
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
    margin: 0;
    /*margin-left: 18%;*/
    opacity: 0;
    display: none;
    transition: .3s ease;
}

.a_tile:hover .tile_content {
    background-color: transparent;
    transition: 1s ease, padding-left 0s ease, padding-right 0s ease;
}

.a_tile:hover .tile_content.with_descript{
    padding-left: 10%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5):hover .tile_content,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6):hover .tile_content,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7):hover .tile_content{
    padding-left: 24%;
}

/*.tile_content {*/
/*  position: relative;*/
/*  z-index: 4;*/
/*  background-color: #ffffff;*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  flex-direction: column;*/
/*  height: 70%;*/
/*  width: calc(87% + 16px);*/
/*  position: relative;*/
/*  right: -16px;*/
/*  transition: 0s;*/
/*  padding-right: calc(20px + 16px);*/
/*  padding-left: 24%;*/
/*}*/

.a_tile:hover .tile_content>h2 {
    color: #AD83FF;
}

.a_tile:hover .tile_content.with_descript>p {
    opacity: 1;
    display: block;
}

.tile {
    position: relative;
    min-height: 156px;
    height: 16.45vw;
    background-color: #F2F2F2;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+1),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+2),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+3),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+4) {
    grid-column: span 3;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) {
    grid-column: span 4;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+8),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+9),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+10),
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+11) {
    grid-column: span 3;
}


.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+1),
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+2),
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+3) {
    grid-column: span 4;
}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+4),
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+5) {
    grid-column: span 6;
}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+6),
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+7),
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+8) {
    grid-column: span 4;
}


.tile .right {
    position: absolute;
    right: 0;
    top: 0;
    width: 6vw;
    height: 100%;
    z-index: 1;
}

.tile .right>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) .right {
    width: 35%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5) .right>img,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6) .right>img,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) .right>img {
    object-position: 30% 0%;
    transform: scale(1.3);
}


.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+1) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+3) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+8) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+10) .right {
    width: 30%;
    top: -30%
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+2) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+4) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+9) .right,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+11) .right {
    width: 20%;
}



.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+1) .right,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+2) .right,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+3) .right,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+6) .right,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+7) .right,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+8) .right {
    width: 30%;
    top: 0;
}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+1) .right>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+2) .right>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+3) .right>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+6) .right>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+7) .right>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+8) .right>i8 {
    object-position: 30% 0%;
    transform: scale(1.3);
}


.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+4) .right,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+5) .right {
    top: -30%;
    width: 27%;

}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+4) .right>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+5) .right>img {
    object-position: 50% 50%;
    transform: none;
}


.tile .violet {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(-50%);
    width: 30%;
    height: 100%;
    background-color: #E9DCFF;
    /*#E9DCFF #*/
    z-index: 1;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+1) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+3) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+8) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+10) .violet {
    width: 60%;
    height: 90%;
    top: 85%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) .violet {
    width: 35%;
    height: 90%;
    top: 70%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+2) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+4) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+9) .violet,
.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+11) .violet {
    width: 40%;
    height: 90%;
    top: 70%;
}


.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+1) .violet,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+2) .violet,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+3) .violet,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+6) .violet,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+8) .violet {
    width: 35%;
    height: 90%;
    top: 70%;
}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+7) .violet {
    width: 40%;
    height: 60%;
    top: 70%;
}


.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+4) .violet,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+5) .violet {
    width: 32%;
    height: 60%;
    top: 70%;
}


/* Цветок в левом нижнем углу */
.tile .flower {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    transition: .2s ease;
}

.tiles_children_wrapper .a_tile .flower>img {
    height: 38%;
    object-fit: contain;
    user-select: none;
    position: absolute;
    left: 0;
    bottom: 0;
}

.a_tile:hover .flower {
    opacity: 0;
}

/* Стили цветков */


.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+1) .flower>img {
    height: 38%;
}


.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+2) .flower>img {
    height: 35%;
}


.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+3) .flower>img {
    height: 40%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+4) .flower>img {
    height: 40%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5) .flower>img {
    height: 40%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6) .flower>img {
    height: 38%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) .flower>img {
    height: 40%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+8) .flower>img {
    height: 41%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+9) .flower>img {
    height: 40%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+10) .flower>img {
    height: 42%;
}

.tiles_children_wrapper.four_three_four .a_tile:nth-child(11n) .flower>img {
    height: 39%;
}


/*=/=/=/=/=/=/=/=/=/=/=/=/=*/

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+1) .flower>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+2) .flower>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+3) .flower>img{
    height: 43%;
}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+6) .flower>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+7) .flower>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+8) .flower>img {
    height: 38%;
}

.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+4) .flower>img,
.tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+5) .flower>img {
    height: 47%
}

@media(max-width: 1300px) {
    .tile_content h2 {
        font-size: 18px;
    }
    
    .tile_content p {
        display: none;
    }
    
    .a_tile:hover .tile_content.with_descript>p {
        opacity: 0;
        display: none;
    }
    
    .a_tile:hover .tile_content.with_descript {
        padding-left: 24%;
    }
    

}

@media(max-width:900px) {
    .tile_content>h2 {
        font-size: 2.1vw;
    }

    .tiles_children_wrapper {
        margin-top: 12px;
    }
    
    .tiles_children_grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 24px;
        margin: 0 auto;
        width: 100%;
        /* max-width: 1400px; */
    }
    
    .tile{
        min-height: 119px;
        height: 15.4vw;
    }
}

@media (max-width: 600px) {
    .tiles_children_grid {
        display: flex;
        flex-direction: column;
        gap: 4vw;
    }

    .tiles_children_wrapper {
        margin-top: 0;
    }

    .tile {
        width: 100%;
        height: 70vw;
    }

    .a_tile::before {
        background: transparent;
    }

    .a_tile:hover::before {
        opacity: 0;
    }

    .a_tile:hover .tile_content {
        background-color: white;
        transition: none;
    }

    .a_tile:hover .tile_content>h2 {
        color: #000000;
    }

    .a_tile:hover .tile_content>p {
        opacity: 0;
    }


    .a_tile:hover .flower {
        opacity: 1;
    }

    .tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5) .right,
    .tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6) .right,
    .tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) .right {
        width: 12%;
    }

    .tile_content>h2 {
        font-size: 18px;
    }

    .tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+5) .flower,
    .tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+6) .flower,
    .tiles_children_wrapper.four_three_four .a_tile:nth-child(11n+7) .flower {
        width: 25%;
    }

    .tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+4) .violet,
    .tiles_children_wrapper.three_two_three .a_tile:nth-child(8n+5) .violet {
        width: 60%;
        height: 60%;
        top: 70%;
    }

    .tiles_children_wrapper.three_two_three .a_tile:nth-child(2n) .right {
        top: 0;
        width: 18%;
    }

    .tiles_children_wrapper.three_two_three .a_tile:nth-child(2n+1) .right {
        top: -30%;
        width: 27%;

    }

    .tiles_children_wrapper.three_two_three .a_tile:nth-child(2n+1) .right>img,
    .tiles_children_wrapper.three_two_three .a_tile:nth-child(2n) .right>img {
        object-position: 50% 50%;
        transform: none;
    }
}

.tiles_children_wrapper.ipad_two_columns .tile_content *{
    font-weight: 400;
    color: #313332;
}


.tiles_children_wrapper.ipad_two_columns .a_tile:hover .tile_content.with_descript>p {
    opacity: 1 !important;
    display: block !important;
}

@media (max-width: 1400px) {
    .tiles_children_wrapper.ipad_two_columns .tile{
        height: 235px;
    }
    
    .tiles_children_wrapper.ipad_two_columns .tile_content.with_descript{
        padding-left: 16%;
    }
    
      
    
    .tiles_children_wrapper.ipad_two_columns .a_tile:hover .tile_content.with_descript {
        padding-left: 16%;
    }
    .tiles_children_wrapper.ipad_two_columns .tile_content p{
        font-size: 16px;
    }
}

/* iPad layout: 2 колонки с центрированной третьей плиткой */
@media (min-width: 600px) and (max-width: 1024px) {
    .tiles_children_wrapper.ipad_two_columns .tiles_children_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        justify-items: center;
    }
    
    .tiles_children_wrapper.ipad_two_columns .a_tile {
        grid-column: span 1 !important;
        width: 100%;
        max-width: none;
    }
    
    /* Центрируем каждую третью плитку — она занимает всю ширину, но контент такой же ширины */
    .tiles_children_wrapper.ipad_two_columns .a_tile:nth-child(3n) {
        grid-column: 1 / -1 !important;
        max-width: calc(50% - 12px); /* Половина ширины минус половина gap */
        justify-self: center;
    }
    
    /* Адаптируем высоту плиток для iPad */
    /*.tiles_children_wrapper.ipad_two_columns .tile {*/
    /*    height: 18vw;*/
    /*    min-height: 150px;*/
    /*}*/
    
    .tiles_children_wrapper.ipad_two_columns .tile_content h2 {
        font-size: 20px;
    }
}

@media (max-width: 601px){
    .tiles_children_wrapper.ipad_two_columns .tile_content p{
        display: block;
        opacity: 1;
    }
}

/* Для portrait iPad (меньшая ширина) */
/*@media (min-width: 600px) and (max-width: 767px) {*/
/*    .tiles_children_wrapper.ipad_two_columns .tiles_children_grid {*/
/*        grid-template-columns: repeat(2, 1fr);*/
/*        gap: 20px;*/
/*    }*/
    
/*    .tiles_children_wrapper.ipad_two_columns .a_tile {*/
/*        grid-column: span 1 !important;*/
/*        width: 95%;*/
/*    }*/
    
/*    .tiles_children_wrapper.ipad_two_columns .a_tile:nth-child(3n) {*/
/*        grid-column: 1 / -1 !important;*/
/*        justify-self: center;*/
/*    }*/
/*}*/