/* Общие стили страницы продукта */
h1,
h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Контейнер для деталей продукта */
.delivery-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 2rem 3rem;
}

/* Информация о продукте */
.delivery-block {
    display: flex;
    flex-direction: column;
    justify-content: normal;
}

/* Кнопка заказа и контакты */
.order-button {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    margin: 20px 0 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.order-button:hover {
    background-color: #555;
}

.hidden-section {
    display: none;
}

.contact-options {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ddd;
    animation: fadeIn 0.3s ease;
    max-width: 270px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.contact-option-heading {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #444;
}

.contact-options-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 10px;
}

/* Стили для кнопок контактов */
.telegram-button,
.instagram-button,
.email-button {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.telegram-button {
    background-color: #0088cc;
}

.instagram-button {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.email-button {
    background-color: #d44638;
}

.telegram-button:hover,
.instagram-button:hover,
.email-button:hover {
    filter: brightness(1.1);
    opacity: 0.9;
}

.telegram-button:active,
.instagram-button:active,
.email-button:active {
    filter: brightness(0.95);
}

.telegram-icon,
.instagram-icon,
.email-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.telegram-button,
.instagram-button,
.email-button,
.telegram-button:hover,
.instagram-button:hover,
.email-button:hover,
.telegram-button:active,
.instagram-button:active,
.email-button:active,
.telegram-button:visited,
.instagram-button:visited,
.email-button:visited,
.telegram-button:focus,
.instagram-button:focus,
.email-button:focus {
    color: white !important;
    text-decoration: none !important;
}

.telegram-button span,
.instagram-button span,
.email-button span {
    color: inherit;
    text-decoration: inherit;
}

/* Скрытый контент */
.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.25s linear;
}

.notDisplay {
    display: none;
}

.svg-icon {
    width: 24px;
    height: 24px;
    padding-right: 0.7rem;
    fill: currentColor;
    transition: inherit;
    vertical-align: middle;
    display: inline-block;
}

h1.delivery-block-name,
h2.delivery-block-name {
    font-size: 18px;
    font-weight: 500;
}

.delivery-block-name--spaced-sm {
    margin-top: 10px;
}

.delivery-block-name--spaced-lg {
    margin-top: 30px;
}

.metrika-noscript {
    position: absolute;
    left: -9999px;
}

p.delivery-block_fields{
    font-size: 15px;
    font-weight: 400;
}

/* Медиа-запросы для адаптивности */
@media (min-width: 768px) {
    .delivery-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .delivery-details {
        padding: 30px 0px 0px 0px;
    }

    .delivery-block {
        padding: 0px 20px 10px 20px;
    }

    .order-button {
        max-width: none;
    }

    .contact-options {
        max-width: none;
    }
}

/* Обновленные стили для плавного перехода изображений */
.content-placeholder {
    background: linear-gradient(90deg, #f0f0f0 0%, #e6e6e6 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: placeholderShimmer 1.5s infinite;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

@keyframes placeholderShimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* Блок на всю ширину (для гарантии) */
.delivery-block--full {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Ссылка внутри текста */
.inline-link {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: #0088cc;
}

/* Медиа-запросы для адаптивности */
@media (min-width: 768px) {
    .delivery-details {
        grid-template-columns: 1fr 1fr;
    }

    /* Блок гарантии на всю ширину в две колонки */
    .delivery-block--full {
        grid-column: 1 / -1;
        border-top: 1px solid #e0e0e0;
        padding-top: 30px;
    }
}

@media (max-width: 767px) {
    /* ...existing code... */

    .delivery-block--full {
        border-top: 1px solid #e0e0e0;
        padding-top: 20px;
    }
}