* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden; 
}

.container {
    max-width: 100%;
    padding: 0 14px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0 0;
    background-color: #ffffff;
}

.chat-button {
    background-color: #2ca5e0;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 22px;
    text-decoration: none;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}


.chat-button:active {
    transform: scale(0.95);
    background-color: #0b415c;
}

.social-icon-main {
    width: 26px;
    height: 23px;
    vertical-align: middle;
    margin-right: 10px;
}
.tabs {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    padding: 5px 0;
    gap: 4px;
}

.tab-wrapper {
    display: flex;
    align-items: center;
}

.tab {
    background-color: transparent;
    font-size: 22px;
    cursor: pointer;
    padding: 18px 40px;
    margin: 0;
    border: 1px solid #707579;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #414141;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 4px;
}


.tab.active, .tab:focus {
    border-color: #EA443B;
    font-weight: bold;
    color: #ffffff;
    background-color: #EA443B;
    outline: none;
}

.tab:focus {
    outline: none;
}


.trash {
    margin-top: 10px;
}


@media (max-width: 768px) {
    .tab {
        font-size: 14px;
        padding: 8px 15px;
    }

    .social-icon {
        width: 7px;
        height: 7px;
    }

    .trash {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .tab {
        font-size: 14px;
        padding: 8px 15px;
    }

    .social-icon {
        width: 6px;
        height: 6px;
    }

    .trash {
        margin-top: 5px;
    }
}

.tariff-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    column-gap: 14px; 
    row-gap: 19px; 
    margin-bottom: 19px;
}

.tariff-card {
    background-color: #ffffff;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
}

.tariff-details h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.tariff-details p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.details-button {
    display: block;
    margin-top: 8px; 
    padding: 12px 31px;
    background-color: transparent; 
    color: #414141;
    border: 1px solid #707579;
    border-radius: 43px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.details-button:hover {
    background-color: #707579;
}


.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px; 
    object-fit: cover;
}

.tc {
    text-align: center;
}

.my-5 {
    margin-top: 13px;
    margin-bottom: 13px;
}

h2.tc.my-5 {
    padding: 5px;
    background-color: #f4f4f9;
    border-radius: 10px;
    font-size: 1.8em;
    color: #ff0000;
}

img[src="banner.svg"] {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 20px auto 0px auto;
    object-fit: cover;
}


/* Заголовок и линия */
.title-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

footer{
    background-color: #E3E3E3;
    width: 100%;
}
.custom-footer {
    background-color: #E3E3E3;
    padding: 20px;
    text-align: center;
    color: #333;
    border-top: 1px solid #dcdcdc;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 55px;
}

.letter{
    width: 127px;
    height: 27px;
}

.footer-link {
    color: #414141;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #707579;
    border-radius: 20px;
    display: inline-block;
    transition: background-color 0.3s;
}


.footer-link:hover {
    background-color: ##707579;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 22px;
    margin-bottom: 16px;
}

.social-icon-footer {
    width: 40px;
    height: 40px;
}

.footer-section-number .phone-text {
    color: #000000;
    font-size: 19px;
    margin-top: 10px;
}

.phone-text {
    margin: 0;
    color: #000000;
    font-size: 20px;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 20px;
    color: #555;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: fixed; 
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    font-weight: bold;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    z-index: 1001;
}

.close:hover {
    background: #f0f0f0;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    margin-bottom: 20px;
}

.modal-info {
    padding: 10px 0;
    margin-bottom: 10px;
}

.discount-price {
    color: #ff0000;
    font-size: 19px;
    font-weight: bold;
    margin: 10px 0;
}

.modal-provider {
    color: #888;
    font-size: 1em;
    margin: 5px 0 3px;
}

#modal-description {
    font-size: 1em;
    color: #333;
    margin: 10px 0;
    text-align: left;
    line-height: 1.6;
}

.chat-button-modal {
    display: block;
    background-color: #EA443B;
    color: #ffffff;
    padding: 20px;
    border: none;
    border-radius: 35px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 35px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.chat-button-modal2 {
    display: block;
    background-color: #EA443B;
    color: #ffffff;
    padding: 20px;
    border: none;
    border-radius: 35px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.chat-button-modal:hover {
    background-color: #d0342c;
}

.modal-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.modal-title-tarif{
    display: block;
    font-size: 18px;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}