body {
    margin: 0px;
}

@font-face {
	font-family: 'FuturaLightC-Italic';
	src: url('../fonts/futuralightc-italic.eot'); /* IE 9 Compatibility Mode */
	src: url('../fonts/futuralightc-italic.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('../fonts/futuralightc-italic.woff2') format('woff2'), /* Super Modern Browsers */
		url('../fonts/futuralightc-italic.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('../fonts/futuralightc-italic.ttf') format('truetype'), /* Safari, Android, iOS */
		url('../fonts/futuralightc-italic.svg#futuralightc-italic') format('svg'); /* Chrome < 4, Legacy iOS */
}

.tele {
    color:#d3d3d3;  
    text-shadow: 
    -2px -2px 0 #000;    
    font-family: "FuturaLightC-Italic";
    cursor: pointer;
    padding: 12px 60px;
    transition: box-shadow .5s;
    text-decoration: none;
} 

.main {
    min-height: 100vh;
    display: flex;                                           
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo {
    filter: invert(10%) sepia(16%) saturate(2206%) hue-rotate(326deg) brightness(94%) contrast(85%);
    width: 80px;
}

.social-icon {
    filter: invert(36%) sepia(16%) saturate(2206%) hue-rotate(326deg) brightness(94%) contrast(85%);
}

.logo-wrapper {
    position: absolute;
    bottom: -120px;
}

.socials-wrapper {
    position: absolute;
    bottom: -210px;
    display: flex;
}
.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 20px; /* отступы между кнопками */
    margin: 20px 0;
    padding: 0 20px;
}

.link-item {
    color: #d3d3d3;
    text-shadow: -2px -2px 0 #000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    font-family: "FuturaLightC-Italic";
    cursor: pointer;
    box-shadow: 0px 0px 2px 1px #e3d0bd;
    padding: 12px 30px; /* чуть меньше, чтобы помещались в ряд */
    border-radius: 20px;
    transition: box-shadow .5s;
    text-decoration: none;
    white-space: nowrap; /* чтобы текст не переносился */
}

.link-item:hover {
    box-shadow: 0px 0px 4px 1px #beb8b1;
}

/* Мобильная адаптация: кнопки в колонку */
@media (max-width: 768px) {
    .links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .link-item {
        width: auto;
        min-width: 200px;
        text-align: center;
        padding: 12px 30px;
    }
}

.text {
    color:#d3d3d3;
    text-shadow: -2px -2px 0 #000;    
    font-family: "FuturaLightC-Italic";
    font-size:22px;
    line-height: 40px;
    align-items:center;
    letter-spacing: 0.02em;
    padding: 20px;
    border-radius: 30px;
}

.text-wrapper {
    margin: 30px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover {
    position: fixed;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-position-y: top;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.cover-with-image {
    background-image: url(images/изгибы.jpg)
}
.cover-color {
    background-color: rgba(0, 0, 0, 0.6); 
}

.social {
    color:#5B675A;
    height: 40px;
    width: 40px;
    display: flex;
    padding: 8px;
    border-radius: 100%;
    background-color:#d3d3d3;
    transition: background-color .5s;
    filter: #5B675A;
}
.social:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social:not(:last-child) {
    margin-right: 8px;
}

.social-icon {
    filter: #5B675A;
    color:#d3d3d3;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    bottom: 0px;
}

.cont {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
}

@media (max-width: 450px) {
    .text-logo {
        font-size: 35px;
        align-items:center;
        flex-direction: column;
    }
    .text-wrapper {
        margin-left: 20px;
        margin-right:20px;
    }
    .text {
        font-size: 16px;
        align-items:center;
        flex-direction: column;
    }
}
@media (max-width: 350px) {
    .text-wrapper {
        margin-top: 40px;
    }
}
@media (max-width: 750px) {
    .text-logo {
        font-size: 35px;
        align-items:center;
        flex-direction: column;
    }
    .text {
        font-size: 16px;
        align-items:center;
        flex-direction: column;
    }
    .link-item {
        width: 140px;
        font-size: 14px;
        padding: 12px 30px;
        margin-top: 15px;
    }
    .link-item:hover {
        box-shadow: 0px 0px 4px 1px #cdc4ba;
    }
    .text-wrapper {
        margin: 15px 0px;
    }
}

footer {
    color:#8C4F3E;
    padding-bottom: 20px;
}

@media (max-width: 950px) {
    .text-logo {
        font-size: 35px;
        align-items:center;
        flex-direction: column;
    }
    .links {
        margin: 0px;
        flex-direction: column;
    }
    .link-item {
        width: 160px;
        margin: 16px 0px;
        padding: 12px 40px;
        text-align: center;
        margin-top: 15px;
    }
    .link-item:hover {
        box-shadow: 0px 0px 4px 1px #e0d2c3;
    }
    .logo {
        width: 60px;
    }
    .logo-wrapper {
        bottom: -50px;
    }
    .socials-wrapper {
        bottom: -120px;
    }
    .social {
        width: 28px;
        height: 28px;
    }
    .text {
        font-size: 18px;
        align-items:center;
        flex-direction: column;
    }
}

/* =========================================================================
   СТИЛЬНЫЙ СТEКЛЯННЫЙ ФУТЕР (ПОДВАЛ САЙТА)
   ========================================================================= */
.site-footer {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 0 !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

.footer-logo-block {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

.footer-logo-img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    padding: 2px !important;
    background: rgba(91, 66, 32, 0.05) !important;
    border-radius: 8px !important;
}

.footer-copy {
    color: rgb(237, 237, 237) !important;
    font-size: 13px !important;
    font-family: sans-serif !important;
}

.footer-socials-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.social-link img {
    width: 25px !important;
    height: 25px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.social-link:hover {
    background-color: #E89E2C !important;
    box-shadow: 0 4px 12px rgba(232, 158, 44, 0.3) !important;
    transform: translateY(-2px) !important;
}

.social-link:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .footer-logo-block {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .footer-socials-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* 1. СБРОС ОГРАНИЧЕНИЙ ВЫСОТЫ ДЛЯ ВСЕЙ СТРАНИЦЫ (ВКЛЮЧАЕМ СКРОЛЛ) */
html, body {
    height: auto !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 2. РАЗРЕШАЕМ КОНТЕНТУ РАСТЯГИВАТЬСЯ И СКРОЛЛИТЬСЯ НА СМАРТФОНАХ */
.main, main, .hero-section {
    flex: 1 0 auto !important;
    height: auto !important;
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    box-sizing: border-box !important;
}

/* 3. ПРАВИЛЬНЫЙ ФУТЕР, КОТОРЫЙ ИДЕТ СЛЕДОМ ЗА КНОПКАМИ */
.site-footer {
    position: relative !important;
    margin-top: auto !important;
    width: 100% !important;
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* 4. МЯГКАЯ МОБИЛЬНАЯ КОРРЕКЦИЯ */
@media (max-width: 768px) {
    .main, main, .hero-section {
        padding-top: 120px !important;
        padding-bottom: 30px !important;
    }
}

/* 1. ГАРАНТИРОВАННОЕ РАСКРЫТИЕ ДЛЯ ВСЕХ СЛОЕВ СТРАНИЦЫ */
html, body {
    height: auto !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 2. РАДИКАЛЬНОЕ ИСПРАВЛЕНИЕ КЛАССА .MAIN И ЕГО ОБОЛОЧЕК */
.main, main, .hero-section, .text-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    height: auto !important;
    min-height: calc(100vh - 160px) !important;
    padding-top: 110px !important;
    padding-bottom: 50px !important;
    box-sizing: border-box !important;
    float: none !important;
    position: relative !important;
}

/* РАСКРЫТИЕ ПОДВАЛА НА ВСЮ ШИРИНУ ЭКРАНА */
.site-footer, .footer {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vh + 50%) !important;
    margin-right: calc(-50vh + 50%) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(94, 105, 74, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

.catalog,
.cart-section {
    padding: 80px 0;
    background-color: #1C2A39;
    margin-top: 80px;
}

h1 {
    font-family: 'FuturaLightC-Italic';
    color: #8C4F3E;
}

h2 {
    font-family: 'FuturaLightC-Italic';
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #d3d3d3;
}

/* ПЕРЕКРАШИВАЕМ ТЕКСТ ТОВАРОВ В КОРЗИНЕ НА СТРАНИЦЕ ИНДЕКС */
.cart-item,
.cart-item-title,
.cart-item-price {
    color: #e0e0e0 !important;
    font-family: sans-serif !important;
}

/* СТИЛИЗАЦИЯ КРЕСТИКА УДАЛЕНИЯ НА СТРАНИЦЕ ИНДЕКС */
.cart-item .remove-btn {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.cart-item .remove-btn:hover {
    color: #ea5455 !important;
}

/* =========================================================================
   ФИРМЕННАЯ КНОПКА «ВОЙТИ В ЛК» ДЛЯ СТРАНИЦЫ ИНДЕКС
   ========================================================================= */
.header-lk-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    font-family: 'FuturaLightC-Italic', sans-serif !important;
    color: #ffffff !important;
    background-color: transparent !important;
    border: 2px solid #eceae7 !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-sizing: border-box !important;
}

.header-lk-btn:hover {
    background-color: #f4efe8 !important;
    color: #1e1e24 !important;
    box-shadow: 0 4px 15px rgba(232, 158, 44, 0.4) !important;
    transform: translateY(-1px) !important;
}

.header-lk-btn:active {
    transform: translateY(1px) !important;
}

/* НАМЕРТВО ФИКСИРУЕМ ГЛАЗИК В ПОЛЕ ПАРОЛЯ */
.password-toggle {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

input[type="password"] {
    padding-right: 45px !important;
    box-sizing: border-box !important;
}

.password-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.password-wrapper input {
    width: 100% !important;
    padding-right: 45px !important;
    box-sizing: border-box !important;
}

.password-toggle {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
}
.empty-message {
    color: #9ca3af; /* это серый */
    text-align: center;
    padding: 20px 0;
}
.password-toggle svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}


/* КОРЗИНА И ИНПУТЫ НА ГЛАВНОЙ СТРАНИЦЕ */
.index-cart-section {
    min-height: auto !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
}

.index-cart-input {
    width: 100% !important;
    padding: 12px 15px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    margin-bottom: 15px !important;
}

.index-cart-total-row {
    display: flex !important;
    justify-content: space-between !important;
    color: #ffffff !important;
    font-size: 16px !important;
    margin: 20px 0 !important;
    font-family: sans-serif !important;
}

/* ============================================================
   НОВЫЕ ДОПОЛНЕНИЯ ДЛЯ ФОРМЫ ЗАКАЗА, ОШИБОК И АНИМАЦИЙ
   ============================================================ */

/* Ошибки валидации */
.index-cart-input.error {
    border-color: #ea5455 !important;
    background: rgba(234, 84, 85, 0.1) !important;
}

.input-error-msg {
    color: #ea5455;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
    font-family: sans-serif;
}

.input-error-msg.visible {
    display: block;
}

/* Спиннер на кнопке отправки */
#checkout-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    color: transparent !important; /* скрываем текст, чтобы видно было спиннер */
}
#checkout-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Блок ошибок от сервера (если send.php вернёт ошибку) */
.alert-error {
    background: rgba(234, 84, 85, 0.2);
    border: 1px solid #ea5455;
    color: #ea5455;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: sans-serif;
    font-size: 14px;
    text-align: left;
}

/* Стили для страницы успеха (если success.html) */
.success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
    box-sizing: border-box;
}
.success-box {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}
.success-box h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'FuturaLightC-Italic', sans-serif;
}
.success-box p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    line-height: 1.6;
    font-family: sans-serif;
}
.success-box .email-highlight {
    color: #E89E2C;
    font-weight: bold;
}
.back-to-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background-color: #5B675A;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'FuturaLightC-Italic', sans-serif;
}
.back-to-catalog-btn:hover {
    background-color: #1C2A39;
    box-shadow: 0 4px 15px #666;
    transform: translateY(-1px);
}

/* Дополнительный отступ для формы на очень маленьких экранах */
@media (max-width: 450px) {
    .main, .index-cart-section {
        padding-top: 130px !important;
    }
}

/* ===== БАННЕР (как на лекала) ===== */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    font-family: 'FuturaLightC-Italic';
    /* Убираем фоновую картинку */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-content {
    width: 100%;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 44px;
    margin: 0 auto 15px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 15px 30px;
    display: inline-block;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    padding: 10px 30px;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        height: 45vh;
        margin-top: 80px;
    }
    .hero-content h1 {
        font-size: 28px;
        padding: 10px 20px;
    }
    .hero-content p {
        font-size: 16px;
        padding: 8px 20px;
    }
}
@media (max-width: 480px) {
    .hero {
        height: 40vh;
        margin-top: 80px;
    }
    .hero-content h1 {
        font-size: 22px;
        padding: 8px 16px;
    }
    .hero-content p {
        font-size: 14px;
        padding: 6px 16px;
    }
}