/* ====================== Общие стили ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====================== Цветовая палитра ====================== */
:root {
    --primary-color: #410066;
    --secondary-color: #6e0099;
    --accent-color: #ff6600;
    --text-color: #333;
    --button-background: #460066;
    --button-hover: #7a00b3;
    --notification-success: #28a745;
    --input-border-color: #ddd;
    --error-border-color: #dc3545;
    --footer-background: #410066;
    --lang-switch-bg: #5c0099;
    --lang-switch-hover: #7a00b3;
}

/* ====================== Header ====================== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 15px;
    position: relative;
    width: 100%;
    min-height: 90px;           /* фиксированная минимальная высота */
}

.logo {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 75px;
    height: auto;
    z-index: 5;
}

#site-title {
    font-size: 1.85em;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    padding: 0 90px 0 90px;     /* отступы слева и справа под логотип */
    line-height: 1.2;
}

/* Навигация */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ====================== Переключатель языка ====================== */
#language-switch {
    position: fixed;
    top: 12px;
    right: 15px;
    background-color: var(--lang-switch-bg);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 1000;
    font-size: 15px;
}

#language-switch a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
}

#language-switch a:hover {
    text-decoration: underline;
}

/* ====================== Main ====================== */
main {
    flex: 1 0 auto;
    padding: 25px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* ====================== Категории товаров ====================== */
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.category img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
}

.category h3 {
    margin: 12px 0 8px 0;
    font-size: 1.25rem;
}

.category h3 a {
    color: #333;
    text-decoration: none;
}

.category h3 a:hover {
    color: var(--primary-color);
}

/* ====================== Footer ====================== */
footer {
    background-color: var(--footer-background);
    color: white;
    text-align: center;
    padding: 20px 15px;
    margin-top: auto;
    width: 100%;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
}

/* ====================== Адаптивность ====================== */
@media (max-width: 768px) {
    .logo {
        width: 65px;
        left: 15px;
    }

    #site-title {
        font-size: 1.5em;
        padding: 0 75px;           /* меньше отступов на планшете */
    }
}

@media (max-width: 480px) {
    header {
        padding: 18px 12px;
        min-height: 80px;
    }

    .logo {
        width: 55px;
        left: 12px;
    }

    #site-title {
        font-size: 1.35em;
        padding: 0 70px 0 70px;    /* оптимально для телефона */
        margin-top: 5px;
    }

    #language-switch {
        font-size: 13px;
        padding: 5px 9px;
        top: 10px;
        right: 10px;
    }

    main {
        padding: 20px 12px;
    }
}
/* ====================== Кнопка стили ====================== */
/* контейнер */
.promo-block {
    text-align: center;
    margin: 25px 0;
}

/* кнопка */
.gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;

    color: #fff;
    text-decoration: none;

    border-radius: 999px;
    border: none;

    background: linear-gradient(135deg, #cfae2b, #ffd700, #a8861c);
    background-size: 200% 200%;

    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.5),
        inset 0 1px 2px rgba(255,255,255,0.4);

    animation: goldFlow 4s ease infinite, pulse 2s infinite;
    position: relative;
    overflow: hidden;

    transition: all 0.25s ease;
}

/* hover как у Apple */
.gold-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px rgba(255, 215, 0, 0.7),
        inset 0 1px 3px rgba(255,255,255,0.5);
}

/* актив */
.gold-btn:active {
    transform: scale(0.97);
}

/* иконка Telegram */
.tg-icon {
    width: 18px;
    height: 18px;
    background: url("https://cdn-icons-png.flaticon.com/512/2111/2111646.png") no-repeat center;
    background-size: contain;
}

/* перелив */
@keyframes goldFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* пульс */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,215,0,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255,215,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}

/* сияние */
.gold-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );

    transform: rotate(25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* подсказка */
.promo-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}


/* ====================== Дополнительные стили ====================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
button {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    border: 1px solid var(--input-border-color);
}

button {
    background-color: var(--button-background);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 17px;
    cursor: pointer;
}

button:hover {
    background-color: var(--button-hover);
}
/* ==== ИСПРАВЛЕНИЕ SPECIAL OFFER ==== */
.chat-links {
    display: block !important;
    margin-top: 25px;
    padding-top: 15px;
}
.special-offer {
    display: block !important;
    font-size: 1.25em !important;
    font-weight: bold !important;
    color: #d32f2f !important;
    margin: 20px 0 15px 0 !important;
}
.special-offer .price {
    color: #d32f2f !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
}