.container-form__reclama{
    max-width: 300px;
    
}
p {
    text-indent: 20px;
}

.contact {
    margin-bottom: 50px;
}

.reklama__title {
    margin: 20px 0px 30px 0px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.flex-item {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8ff;
    padding: 20px 5px 20px 5px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1 1 calc(33.333% - 20px);
    text-align: center;
    box-sizing: border-box;
    min-height: 82px;
    border: 1px solid #1e2754; 
    
}

.flex-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.flex-item.active {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
 padding: 20px 5px 20px 5px;
            background-color: #1e2754;
            color: white;
        }

@media (max-width: 1200px) {
    .flex-item {
        flex: 1 1 calc(50% - 20px); /* две карточки в ряд на экранах меньше 1200px */
    }
}

@media (max-width: 768px) {
    .flex-item {
        flex: 1 1 calc(100% - 20px); /* одна карточка в ряд на экранах меньше 768px */
    }
}



.block-text {
    flex: 1;
    padding-right: 20px;
}

.block-text h2 {
    margin-top: 0;
}

.block-image {
    flex: 1;
}

.block-image img {
    max-width: 100%;
    border-radius: 10px;
}



.block-button {
    margin-top: 20px;
}

.block-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e2754;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.block-button a:hover {
    background-color: #000;
}

p {
    text-indent: 20px;
}

.contact {
    margin-bottom: 50px;
}

.about__subtitle {
    margin-bottom: 0 !important;
}


.flex-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.block-container {
    display: flex;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.block-text {
    flex: 1;
    padding-right: 20px;
}

.block-text h2 {
    margin-top: 0;
}

.block-image {
    flex: 1;
}

.block-image img {
    max-width: 100%;
    border-radius: 10px;
}



.block-button {
    margin-top: 20px;
}

.block-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e2754;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.block-button a:hover {
    background-color: #000;
}

.flex-container {
    display: grid;
    grid-auto-flow: column;
    gap: 20px;
    margin: 20px 0px 20px 0px;

}


.about__subtitle {
    margin-bottom: 0 !important;
}

.form-group textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.reclama__content {
    margin-top: 20px;
    display: flex;
    gap:20px;
}

.reclama__table {
    width: 100%;
    max-height: 200px;
    border-collapse: collapse;
}

.reclama__table th,
.reclama__table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.reclama__table th {
    background-color: #f4f4f4;
}

.reclama__item button {
    padding: 5px 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reclama__item button:hover {
    background-color: #1e2754;
}

p {
    text-indent: 20px;
}

.reclama {
    margin-bottom: 50px;
}

.about__subtitle {
    margin-bottom: 0 !important;
}
.form__title p{
    padding: 0;
    margin: 0;
    font-size: 18px;
}

/* Адаптив */
@media (max-width: 1000px) {
    .block-container {
        display: block; /* две карточки в ряд на экранах меньше 1200px */
    }
    .block-image{
        margin-top: 20px;
    }
    .flex-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* две карточки в ряд на экранах меньше 1200px */
        grid-auto-flow: dense;
    }
    
}
@media (max-width: 900px) {
    .reclama__content {
        display: block; /* две карточки в ряд на экранах меньше 1200px */
    }
    .flex-item{
        min-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .form__title{
        margin-top: 20px;
    }
}
@media (max-width: 500px) {
    .flex-container {
        display: none;
        /* grid-template-columns: 1fr; /* две карточки в ряд на экранах меньше 1200px */
        /* grid-auto-flow: dense; */
    }
}
@media (max-width: 500px) {
    .reclama__table thead,
    .reclama__table th,
    .reclama__table td {
        display: block;
        width: 100%;
    }

    .reclama__table thead {
        display: none;
    }

    .reclama__table tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 2px solid #ccc;
    }

    .reclama__table td {
        
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .reclama__table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        white-space: nowrap;
        font-weight: bold;
    }

    .reclama__table td:last-child {
        border-bottom: 2px solid #ccc;
    }

    .reclama__item .button-container {
        align-self: center;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .reclama__item .button-container button {
        width: 100%;
        padding: 10px;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%); /* Центрирование по горизонтали */
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal; /* Для многострочных тултипов */
    max-width: 90vw; /* Ограничение ширины тултипа в мобильной версии */
}

/* Изменение направления тултипа, если он уходит за правую границу экрана */
@media (max-width: 700px) {
    .tooltip .tooltiptext {
        left: -70px;
        transform: translateX(-50%); /* Убираем смещение для мобильной версии */
        max-width: 90vw; /* Ограничение ширины тултипа на мобильных устройствах */
    }
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltip-icon {
    font-size: 14px;
    color: gray;
}

.reclama__item span{
    font-size: 14px;
}