/*Обнуление*/
* {
    padding: 0;
    margin: 0;
    border: 0;
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
    line-height: 1;
    /* font-size: 14px; */
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}



.wrapper
{
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.content
{
    display: flex;
    flex: 1 1 auto;
    /* background: rgb(202, 202, 202); */
}

/* Шаблон верх, средний, низ, начало */
.tmb
{
    /* display: block;
    height: 100%; */
    width: 100%;
}
.tmb__box
{
    display: flex;
    height: 100%;
}
.tmb__column
{
 display: flex;
flex-direction: column;
width: 100%;
}
.tmb__mid
{
    display: flex;
    flex: 1 1 auto;
}
/* Шаблон верх, средний, низ, конец */


.cardc
{
    width: 100%;
}
.cardc__line
{
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-around; */
    /* gap:5%; */
    /* (100% - (29% * 3)) */
    gap: 6.5%;  
}
.cardc__card
{
    display: flex;
    flex: 0 0 29%;
    /* flex-direction: column; */
    
    margin-top: 2%;

    
}
.cardc__pic
{
    display: flex;
    flex: 0 0 20%;
}
.cardc__img
{
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    background: white;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;

    box-shadow: 6px -2px 4px 2px rgb(207 219 237 / 30%);    
}
.cardc__img img
{
    flex: 0 0 100%;
    height: auto;
}

.cardc__text
{
    display: flex;
    flex-direction: column;

    border-top: 4px solid #e5e5e5db;
    border-right: 4px solid #e5e5e5db;
    border-top: 4px solid #e5e5e5db;
    border-bottom: 4px solid #e5e5e5db;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;

    box-shadow: 6px -2px 4px 2px rgb(207 219 237 / 30%);

    width: 100%;
}

.cardc__title p
{
    text-align: center;
        font-family: "Kurale", serif;
        font-weight: bold;
        letter-spacing: 1px;

           border-bottom: 3px solid #d59ba6a1;
    color: rgb(250, 250, 250);
    border-top-right-radius: 20px;
    background: red;
}
.cardc__description p
{
font-family: "Kurale", serif;
text-align: center;
padding: 1% 1%;
font-weight:bold;
}
.cardc__words h1
{
    text-align: center;
    margin: 1% 0%;
    color: white;
    letter-spacing: 2px;
}

.cardc__words
{
    background: url(../images/fon1.webp) no-repeat;
    background-size: cover;
    background-position: center;

    background-attachment: fixed;
    display: grid;
    /* place-content: center; */
    background-position: center;
    background-size: cover;
    border-radius: 30px;

    margin: 5% 0%;
}
.cardc__fon
{
   background: rgba(30, 30, 30, 0.39);
    border-radius: 30px;
}
.cardc__words p
{
 padding: 1% 2%;
 color: white;
 line-height: normal;
 text-align: center;
}
@container(max-width: 1450px)
{
    .cardc__card
    {
        flex: 0 0 45%;
    }
}
@container(max-width: 1279px)
{
.container
{
    width: 99%;
}
    .cardc__card
    {
        flex: 0 0 48%;
    }
    .cardc__line
    {
        gap: 3.5%;
    }
}
@container(max-width: 768px)
{
        .cardc__card
    {
        flex: 0 0 100%;
    }
    .cardc__title p
{
    padding: 1% 0%;
}
.cardc__line
{
    gap:unset;
}
.cardc__card
{
    margin-top: 3%;
}
}