﻿*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
:root {
    --bg: #f6f7fb;
    --card: #fff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #e63946;
    --primary-hr: #c82333;
    --ring: #e5e7eb;
}

/* Страница */
body {
    background: var(--bg);
    color: var(--text);
}

.checkout-wrapper {
    padding: 28px 16px 110px;
}
/* запас под sticky */

/* Карточка */
.checkout-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* баланс ширины */
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
    padding: 28px;
    overflow: hidden; /* чтобы ничего не вылезало */
}

.checkout-col h2 {
    font-size: 22px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-qty {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* Левая колонка с логотипом/превью */
.logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 16px;
}

.cart-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.brand-logo {
    width: min(180px,35vw); /* логотип не рвёт верстку */
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    display: block;
}


/* Корзина */
.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.cart-title {
    font-weight: 600;
}

.cart-qty {
    color: var(--muted);
}

.empty {
    color: var(--muted);
    padding: 10px 0;
}

/* Форма */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inp {
    position: relative;
}

    .inp .ico {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        pointer-events: none;
    }

    .inp input, .inp textarea {
        padding-left: 38px !important;
    }

.form-control {
    
    box-shadow: none;
    background: #fff;
}

    .form-control:focus {
        border-color: #fff;
        box-shadow: 0 0 0 3px rgba(255,255,255);
    }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Ошибки */
.validation-summary-errors, .text-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #b91c1c;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

/* Кнопки/действия */
.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.btn-primaryx {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    transition: .2s ease;
}

    .btn-primaryx:hover {
        background: var(--primary-hr);
        transform: translateY(-1px);
    }

    .btn-primaryx:disabled {
        background: #d1d5db !important;
        color: #6b7280 !important;
        cursor: not-allowed;
        transform: none;
    }

/* Мобильная панель действий */
.sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--ring);
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}

.sticky-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.note-muted {
    color: var(--muted);
    font-size: 14px;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Адаптив */
@media (max-width:1024px) {
    .checkout-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .logo-col {
        order: -1;
    }
    /* логотип сверху */
}

@media (max-width:480px) {
    .checkout-wrapper {
        padding: 18px 12px 120px;
    }

    .brand-logo {
        width: min(300px,100%);
    }
}
/* На узких экранах логотип над заголовком */
@media (max-width:640px) {
    .cart-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand-logo {
        width: min(220px,70vw);
    }
}

/* Запас под нижнюю панель, чтобы поля не перекрывались */
.checkout-wrapper {
    padding-bottom: 120px;
}

@media (min-width:992px) {
    .checkout-wrapper {
        padding-bottom: 40px;
    }
    /* на десктопе sticky не показываем */
}



/*////////////////////////////////////////*/
/* AUTHENTİFİCATİON */
/* ====== THEME (red / black / white) ====== */
:root {
    --bg: #ffffff; /* фон всей страницы — белый */
    --cardg: #ffffff; /* фон карточек */
    --text: #0f1113; /* базовый текст (почти чёрный) */
    --muted: #6b7280; /* вторичный */
    --line: #e7e7ea; /* линии/бордеры */
    --shadow: 0 16px 40px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
    --radius: 18px;
    --focus: 0 0 0 3px rgba(183,20,20,.15);
    /* акцент — фирменный красный */
    --red: #b71414;
    --red-600: #a51212;
    --red-100: #fde8e8;
}

body {
    background: var(--bg);
}

/* ====== WRAPPER + BRAND ====== */
.auth-wrap {
    min-height: 100dvh;
    display: grid;
    gap: 32px;
    align-content: start;
    justify-items: center;
    padding: 48px 20px 64px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
}

/* верхняя полоска с логотипом */
.brandbar {
    width: min(1100px,95vw);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .4px;
}

    .brand img {
        height: 60px; /* было 38px — увеличил */
        width: auto; /* сохраняет пропорции */
        object-fit: contain; /* не даст искажаться */
        display: block;
    }

    .brand b {
        color: var(--red);
    }

/* ====== CARD ====== */
.cardg {
    width: min(1100px,95vw);
    background: var(--cardg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 28px;
    padding: 40px 44px;
    align-items: center;
    transition: opacity .25s, transform .25s;
    border: 1px solid #f2f2f4;
}

    .cardg.hide {
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
        position: absolute;
    }

    .cardg.show {
        opacity: 1;
        transform: none;
    }

/* левая/правая колонка */
.cardg-col.form {
    padding: 10px 6px;
}

.cardg-col.art {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.cardg-col {
    margin: auto;
    width: 45% !important;
}
/* декоративные «иллюстрации» без картинок: красно-чёрные элементы */
.poster {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(120px 120px at 85% 30%, rgba(183,20,20,.18) 0, transparent 60%), radial-gradient(160px 160px at 20% 80%, rgba(0,0,0,.08) 0, transparent 60%), linear-gradient(135deg, #fafafa 0%, #f7f7f9 100%);
    border: 1px solid #f0f0f2;
}

    .poster::after {
        content: "";
        position: absolute;
        inset: auto 14% -22px auto;
        width: 72%;
        height: 140px;
        background: linear-gradient(90deg, var(--red) 0%, #111 100%);
        filter: blur(36px);
        opacity: .12;
        transform: skewX(-12deg);
        border-radius: 80px;
    }

.poster-login {
}

.poster-signup {
}

/* ====== TITLES ====== */
.title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: .3px;
}

/* ====== FORM / INPUTS ====== */
.form-grid {
    display: grid;
    gap: 12px;
}

.inp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

    .inp:focus-within {
        border-color: var(--red);
        box-shadow: var(--focus);
    }

    .inp input {
        width: 100%;
        border: 0;
        outline: 0;
        
        background: transparent;
        padding: 10px 0 6px;
        font-size: 15px;
        color: var(--text);
    }

    .inp .ico {
        font-size: 14px;
        width: 18px;
        color: #8b9098;
    }

    .inp .ph {
        position: absolute;
        left: 42px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa0a6;
        pointer-events: none;
        transition: all .15s;
        background: #fff;
        padding: 0 6px;
    }

    .inp input:focus + .ph,
    .inp input:not(:placeholder-shown) + .ph {
        top: -8px;
        font-size: 11px;
        color: var(--red);
    }

/* чекбокс/ссылки */
.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    margin-top: 2px;
}

    .check a {
        color: var(--red);
        text-decoration: underline;
    }

    .check input {
        accent-color: var(--red);
    }

/* кнопки */
.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .3px;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 18px rgba(183,20,20,.22);
}

    .primary:hover {
        background: var(--red-600);
    }

.link {
    background: none;
    border: 0;
    color: #111;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    padding: 6px 0;
    font-size: 14px;
}

    .link:hover {
        color: var(--red);
    }

/* нижняя строка */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 14px;
}

.soc {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.fb {
    background: #111;
}

.tw {
    background: #444;
}

.gg {
    background: var(--red);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .cardg {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }

    .poster {
        height: 200px;
    }

    .title {
        font-size: 28px;
    }

    .row-between {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cardg-head {
    text-align: center;
    padding: 20px 0 10px;
}

.brand-logo {
    max-width: 400px; /* размер логотипа */
    height: auto;
    display: inline-block;
}
/* Карточка-обёртка */
.auth-wrap .cardg {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    padding: 32px 28px;
    max-width: 980px; /* компактнее и аккуратнее */
    margin: 32px auto;
}

/* Две колонки внутри */
.auth-wrap .cardg-body {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

    /* Для login разворачиваем порядок (форма слева, логотип справа) */
    .auth-wrap .cardg-body.reverse {
        flex-direction: row;
    }
    /* По умолчанию (register): логотип слева, форма справа */
    .auth-wrap .cardg-body:not(.reverse) {
        flex-direction: row;
    }

/* Колонка формы */
.auth-wrap .cardg-col.form {
    flex: 1 1 58%;
    min-width: 320px;
}

/* Карточка логотипа */
.auth-wrap .logo-panel {
    flex: 0 0 300px; /* стабильная ширина «плитки» */
    align-self: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 12px 34px rgba(0,0,0,.08), 0 0 0 6px rgba(183,20,20,.04); /* мягкое красное сияние */
    padding: 22px 18px;
    display: grid;
    place-items: center;
}

/* Сам логотип внутри плитки */
.auth-wrap .logo-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    object-fit: contain; /* важное: не «растягивать», а красиво вписывать */
    filter: none; /* без размытий */
}

/* Заголовки и кнопки — без изменений, но чуть ровнее отступы */
.auth-wrap .title {
    margin: 6px 0 16px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .2px;
}

.auth-wrap .form-grid {
    display: grid;
    gap: 16px;
}

.auth-wrap .btn.primary {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: #e1192a; /* красный */
    color: #fff;
    box-shadow: 0 8px 24px rgba(225,25,42,.22);
    transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

    .auth-wrap .btn.primary:hover {
        filter: brightness(1.05);
        box-shadow: 0 10px 28px rgba(225,25,42,.26);
    }

    .auth-wrap .btn.primary:active {
        transform: translateY(1px);
    }

/* Инпуты (оставьте ваши, ниже лишь типовые штрихи) */
.auth-wrap .inp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

    .auth-wrap .inp input {
        width: 100%;
        border: 0;
        outline: 0;
        font: inherit;
        padding: 6px 2px;
    }

    .auth-wrap .inp .ico {
        color: #a0a0a0;
    }

/* Адаптив: на мобиле всё в колонку, логотип — над формой */
@media (max-width: 820px) {
    .auth-wrap .cardg {
        padding: 22px 18px;
    }

    .auth-wrap .cardg-body,
    .auth-wrap .cardg-body.reverse {
        flex-direction: column;
    }

    .auth-wrap .logo-panel {
        width: 100%;
        max-width: 360px;
    }

    .auth-wrap .cardg-col.form {
        width: 100%;
    }
}

.lang-switch {
    display: inline-flex;
    background: #f3f3f3;
    border-radius: 999px;
    padding: 2px;
}

.lang-btn {
    border: 0;
    background: transparent;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    color: #111;
    opacity: .6;
    transition: .2s;
}

    .lang-btn:hover {
        opacity: .9;
    }

    .lang-btn.active {
        background: #e41e2b; /* твой красный */
        color: #fff;
        opacity: 1;
    }

@media (max-width:430px) {
    .lang-switch {
        display: none;
    }
    /* если на мобилке не нужно */
}
/* Карточка */
.p-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.28);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

    .p-card:hover {
        transform: translateY(-4px);
    }

/* Блок с фото */
.p-thumb {
    width: 100%;
    height: 260px; /* фиксированная высота */
    display: flex;
    align-items: center; /* центрируем по вертикали */
    justify-content: center; /* центрируем по горизонтали */
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

    .p-thumb img {
        max-height: 100%; /* ограничение по высоте */
        max-width: 100%; /* ограничение по ширине */
        object-fit: contain; /* сохраняем пропорции */
        display: block;
    }
/* карточка товара */
.p-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}

    .p-card:hover {
        transform: translateY(-4px);
    }

/* фото */
.p-thumb {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    margin-bottom: 12px;
}