:root {
    --dark-blue: #32318a;
    --yellow: #fdf21c;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.section-title {
    margin-top: 0; 
    margin-bottom: 25px; 
}

.main-title-section {
    margin-top: 95px; 
    border-top: 4px solid #ccc; 
    border-bottom: 4px solid #ccc; 
}

    .main-title-section .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

.main-title {
    color: var(--dark-blue);
    font-weight: bold;
    text-align: center;
    font-size: 2.2em;
    margin: 0;
}

@media (max-width: 600px) {
    .main-title {
        font-size: 1.5em;
    }
}

.adv-section-content {
    padding-top: 15px; 
}

    .adv-section-content h2 {
        margin-top: 0;
    }

.section-title-dark {
    color: #000;
    text-align: center;
}


/* ИКОНКИ ПРЕИМУЩЕСТВ */

.adv-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-block;
    background-color: var(--dark-blue);
    transition: background-color 0.3s ease;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.icon-tag {
    -webkit-mask-image: url('../media/tag.svg');
    mask-image: url('../media/tag.svg');
}

.icon-shield {
    -webkit-mask-image: url('../media/shield-check.svg');
    mask-image: url('../media/shield-check.svg');
}

.icon-search {
    -webkit-mask-image: url('../media/search.svg');
    mask-image: url('../media/search.svg');
}

.icon-truck {
    -webkit-mask-image: url('../media/truck.svg');
    mask-image: url('../media/truck.svg');
}

.advantages-list li:hover .adv-icon {
    background-color: #ff3333;
}

.advantages-list li:active .adv-icon {
    background-color: #cc0000;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.bg-white {
    background-color: var(--white);
}

.bg-gray {
    background-color: var(--light-gray);
}

header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    background: rgba(50, 49, 138, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: var(--white);
    padding: 6px 3.6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex-shrink: 1;
}

    .logo-area img {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .logo-area h2 {
        font-size: 1.32em;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/*1 вариант*/
.title-address-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-address {
    font-size: 1em;
    font-weight: bold;
    color: #ffed29;
    white-space: nowrap;
    margin-top: -2px;
}

.first-section {
    padding-top: 120px;
}

.adv-section-content {
    text-align: left;
}

.adv-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.adv-image {
    flex: 1;
    max-width: 45%;
}

    .adv-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.advantages-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 2;
}

    .advantages-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
        text-align: left;
        color: var(--dark-blue);
        transition: color 0.3s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        .advantages-list li:hover,
        .advantages-list li:active {
            color: red;
        }

@media (max-width: 600px) {
    .adv-wrapper {
        flex-direction: column;
    }

    .adv-image {
        max-width: 80%;
        margin-top: 20px;
    }
}

.about-box {
    background: var(--light-gray);
    border: 3px solid var(--dark-blue);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(50, 49, 138, 0.4);
    text-align: left;
    margin-top: 20px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 220px;
    margin: 30px auto 0;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180px;
    height: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.4s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

    .carousel-item img {
        width: 85%;
        max-height: 85%;
        object-fit: contain;
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 20px;
}

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

.rounded-box {
    background: var(--white);
    border: 3px solid var(--dark-blue);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(50, 49, 138, 0.4);
    text-align: left;
    margin-top: 20px;
}

    .rounded-box ul {
        padding-left: 20px;
        line-height: 1.8;
    }

        .rounded-box ul li {
            padding: 8px 15px;
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            color: var(--dark-blue);
        }

            .rounded-box ul li:hover,
            .rounded-box ul li:active {
                background-color: #e6e6e6;
            }

.wide-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark-blue);
    color: var(--white);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.srv-left {
    flex: 1;
    text-align: left;
    padding-right: 15px;
}

.srv-center {
    flex: 0 0 auto;
    text-align: center;
    width: 20px;
}

.srv-right {
    flex: 0 0 160px;
    text-align: left;
    padding-left: 15px;
    color: var(--yellow);
}


@media (max-width: 360px) {
    .logo-area h2 {
        display: none;
    }
}

footer {
    padding: 30px 20px;
    text-align: center;
    font-weight: bold;
}

/* ПОДВАЛ САЙТА */

.site-footer {
    padding: 30px 0;
    border-top: 1px solid #eaeaea; /* легкая линия для отделения подвала от контента */
}

/* контейнер для двух колонок */
.footer-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 40px; 
}

/* первый столбец */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    flex: 1; 
}

    .footer-info p {
        margin: 0;
        color: #333;
        font-size: 0.95em;
    }

/* ссылка на номер телефона в подвале */
.footer-phone-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

    .footer-phone-link:hover {
        color: #ff3333; 
        text-decoration: underline;
    }

.footer-copyright {
    margin-top: 10px !important;
    font-size: 0.85em;
    color: #777;
}

/* второй столбец  */
.footer-legal {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;
    flex: 1; 
}

    .footer-legal p {
        margin: 0;
        color: #000; 
        font-size: 0.85em; 
        line-height: 1.5;
    }


/* адаптивность для мобильных устройств  */

@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column; 
        align-items: center; 
        gap: 30px; 
    }

    .footer-info,
    .footer-legal {
        align-items: center;
        text-align: center;
    }
}

/* скрытый элемент */
.visually-hidden {
    position: absolute;
    left: -9999px;
}

.input-error {
    border-color: #ff3333 !important;
    background-color: #fff0f0;
}

.success-message {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.my-success-alert {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.phone-container {
    position: relative;
    display: inline-block;
    margin-left: 6px;
}

/* стили самого номера */
.copy-phone {
    cursor: pointer;
    color: #ffed29;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.2s;
    user-select: all;
    -webkit-user-select: all;
    white-space: normal; /**/
}

    .copy-phone:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* стили всплывающей подсказки */
.copy-tooltip {
    visibility: hidden;
    background-color: #28a745;
    /* зеленый цвет успеха */
    color: #fff;
    text-align: center;
    border-radius: 14px;
    padding: 5px 10px;
    min-width: 150px;
    /* фиксированная минимальная ширина плашки в пикселях */
    position: absolute;
    z-index: 1;
    top: 130%;
    /* поднимаем над текстом */
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 750; 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

    /* класс, который JS будет добавлять для показа подсказки */
    .copy-tooltip.show {
        visibility: visible;
        opacity: 1;
    }


/*  СТИЛИ ДЛЯ БЛОКА КОНТАКТОВ   */

.contacts-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; 
    margin-top: 30px;
    flex-wrap: wrap;
}

/* прямоугольная карточка */
.contact-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    height: 100px; 
    background-color: var(--white); 
    border: 2px solid #ccc; 
    border-radius: 12px; 
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

/* эффект легкого подъема при наведении курсора */
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    border-color: #bbb;
}

/* логотип внутри карточки */
.contact-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

/* эффект увеличения логотипа при наведении */
.contact-item a:hover .contact-logo {
    transform: scale(1.2);
}

/* адаптация под узкие экраны телефонов */
@media (max-width: 500px) {
    .contact-card {
        max-width: 100%;
        width: 100%;
    }
}


/* СТИЛИ ДЛЯ БЛОКА "КАК МЫ РАБОТАЕМ" */

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.step-card {
    flex: 1;
    background-color: var(--white);
    padding: 20px 15px;
    border-radius: 12px;
    border-top: 3px solid var(--dark-blue);
    border-left: 3px solid var(--dark-blue);
    border-bottom: 3px solid #ccc;
    border-right: 3px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: -4px -4px 12px rgba(50, 49, 138, 0.25), 4px 4px 12px rgba(0, 0, 0, 0.12);
}

/* цифра сверху  */
.step-number {
    font-size: 3em;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 10px;
}

/* название шага  */
.step-title {
    font-size: 1.1em;
    font-weight: 750;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* описание шага  */
.step-desc {
    font-size: 0.92em;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
}

/* переход в вертикальный вид на мобильных устройствах */
@media (max-width: 768px) {
    .steps-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

/* контейнер для выравнивания по центру */
.phone-copy-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 0; 
    text-align: center;
}

/* кнопка с номером телефона */
.phone-copy-btn {
    background-color: var(--dark-blue);
    color: #ffffff; 
    font-size: 36px;
    font-weight: 900;
    padding: 25px 50px;
    border-radius: 20px;
    border: 6px solid #070f1c; 
    cursor: pointer;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

    .phone-copy-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(41, 98, 255, 0.2);
    }

    .phone-copy-btn.clicked {
        background-color: #ffffff; 
        color: var(--dark-blue); 
    }

.phone-copy-hint {
    color: #000000; 
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 0px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.courier-text {
    color: #f55656;
    font-size: 20px;
    margin-top: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .phone-copy-btn {
        font-size: 28px;
        padding: 20px 30px;
    }
}

.reviews-iframe {
    width: 100%; 
    max-width: 528px; 
    height: 800px; 
    display: block;
    margin: 0 auto; 
    border: none;
}


@media (max-width: 576px) {
    .reviews-iframe {
        height: 600px; 
    }
}

@media (max-width: 500px) {
    header {
        padding: 5px 8px;
    }

    .logo-area {
        gap: 4px;
    }

        .logo-area img {
            width: 36px;
            height: 36px;
        }

        .logo-area h2 {
            font-size: 0.7em;
        }

    .header-address {
        font-size: 0.7em;
    }

    .copy-phone {
        font-size: 0.8em;
        margin-left: 6px;
    }

    .wide-card {
        font-size: 1em;
        padding: 15px 10px;
    }

    .srv-left {
        padding-right: 5px;
    }

    .srv-right {
        padding-left: 5px;
        flex: 0 0 120px;
    }

    .carousel-wrapper {
        max-width: 100%;
        height: 200px;
    }

    .carousel-item {
        width: 150px;
        height: 150px;
    }
}

