/* ===== LagomLife Platform — style.css ===== */
/* В стиле lagomlife.space — тёмная тема, моноширинный шрифт */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    background: #1a0a0a;
    color: #f5f0e8;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 { font-weight: 600; line-height: 1.3; }

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(26,10,10,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201,169,110,0.1);
}

.nav__logo {
    font-size: 1.2rem;
    color: #c9a96e;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav__links { display: flex; gap: 1.2rem; align-items: center; }

.nav__user {
    color: #c9a96e;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(201,169,110,0.15);
}

.nav__link {
    color: #b8a088;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav__link:hover { color: #c9a96e; }

.nav__link--cta {
    color: #c9a96e;
    border: 1px solid #c9a96e;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.nav__link--cta:hover { background: #c9a96e; color: #1a0a0a; }

.nav__link--out:hover { color: #c44; }

.nav__link--admin { color: #e8c84a; }
.nav__link--admin:hover { color: #f0d860; text-shadow: 0 0 8px rgba(232,200,74,0.4); }

/* ===== MAIN ===== */
.main { flex: 1; padding-top: 4rem; }

/* ===== HERO LANDING ===== */
.hero--landing {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #2d1111 0%, #0d0505 100%);
}

.hero__overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(26,10,10,0.3) 0%, rgba(26,10,10,0.85) 100%);
}

.hero__content { position: relative; z-index: 2; padding: 2rem; max-width: 680px; }

.hero__supertitle {
    font-size: 1rem; color: #c9a96e; letter-spacing: 0.12em;
    text-transform: uppercase; margin-bottom: 1rem;
}

.hero__title { font-size: 2.8rem; color: #f5f0e8; margin-bottom: 1.2rem; line-height: 1.2; }

.hero__text { font-size: 1.1rem; color: #b8a088; margin-bottom: 2rem; }

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    font-size: 1.5rem; color: #c9a96e; opacity: 0.5; animation: bounce 2s infinite; z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 0.7rem 1.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer;
    border-radius: 6px; letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
    background: linear-gradient(135deg, #c9a96e, #a8863c);
    color: #1a0a0a; font-weight: 600;
}

.btn--primary:hover { box-shadow: 0 4px 20px rgba(201,169,110,0.3); }

.btn--ghost {
    color: #c9a96e; border: 1px solid #5a3a2a; background: transparent;
}

.btn--ghost:hover { border-color: #c9a96e; }

.btn--small { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: 4px; }

.btn--danger { color: #c44; border: 1px solid #5a2a2a; background: transparent; }
.btn--danger:hover { border-color: #c44; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 2rem; }
.section--dark { background: #120808; }

.section__inner { max-width: 960px; margin: 0 auto; }

.section__title {
    font-size: 2rem; color: #c9a96e; text-align: center; margin-bottom: 3rem;
}

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.card {
    padding: 2rem; border: 1px solid rgba(201,169,110,0.1);
    border-radius: 8px; text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: rgba(201,169,110,0.3); transform: translateY(-3px);
}

.card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card__title { color: #f5f0e8; margin-bottom: 0.8rem; font-size: 1.2rem; }
.card__text { color: #a09080; font-size: 0.95rem; }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 2rem; max-width: 500px; margin: 0 auto; }

.step { display: flex; gap: 1.5rem; align-items: flex-start; }

.step__num {
    font-size: 2rem; color: #5a3a2a; font-weight: 700; line-height: 1; min-width: 3rem;
}

.step__title { color: #c9a96e; margin-bottom: 0.3rem; }
.step__text { color: #a09080; font-size: 0.95rem; }

/* ===== FORM PAGE ===== */
.form-page {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}

.form-card {
    max-width: 420px; width: 100%; padding: 2.5rem 2rem;
    border: 1px solid rgba(201,169,110,0.12); border-radius: 8px;
    text-align: center;
}

.form-card__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.form-card__title {
    font-size: 1.6rem; color: #c9a96e; margin-bottom: 0.3rem;
}

.form-card__subtitle { color: #a09080; font-size: 0.9rem; margin-bottom: 1.5rem; }

.form { text-align: left; }
.form__group { margin-bottom: 1.2rem; }
.form__label { display: block; font-size: 0.85rem; color: #b8a088; margin-bottom: 0.3rem; }

.form__input {
    width: 100%; padding: 0.7rem 0.9rem;
    border: 1px solid #5a3a2a; border-radius: 6px;
    background: rgba(255,255,255,0.05); color: #f5f0e8;
    font-family: inherit; font-size: 0.95rem; outline: none;
    transition: border-color 0.3s;
}

.form__input:focus { border-color: #c9a96e; box-shadow: 0 0 20px rgba(201,169,110,0.1); }

.form__select {
    padding: 0.7rem 0.5rem;
    border: 1px solid #5a3a2a; border-radius: 6px;
    background: rgba(255,255,255,0.05); color: #f5f0e8;
    font-family: inherit; font-size: 0.85rem; outline: none;
    cursor: pointer; flex: 0 0 auto; min-width: 110px;
    transition: border-color 0.3s;
    -webkit-appearance: none; appearance: none;
}

.form__select:focus { border-color: #c9a96e; }
.form__select option { background: #1a0a0a; color: #f5f0e8; }

.phone-group {
    display: flex; gap: 0.5rem; align-items: stretch;
}

.form__input--phone { flex: 1; min-width: 0; }

.form__btn { width: 100%; margin-top: 0.5rem; text-align: center; display: block; }

.form-card__footer { margin-top: 1.5rem; color: #b8a088; font-size: 0.9rem; }
.form-card__footer a { color: #c9a96e; }
.form__hint { font-size: 0.75rem; color: #6a5a4a; margin-top: 0.3rem; line-height: 1.4; }

/* ===== FLASH MESSAGES ===== */
.flash-container {
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 500px;
    width: 90%;
    margin: 0.5rem auto 0;
}

.flash {
    padding: 0.8rem 1.2rem; border-radius: 6px; font-size: 0.9rem;
    animation: flashIn 0.3s ease, flashOut 0.5s ease 4s forwards;
    text-align: center;
    cursor: pointer;
}

.flash--success { background: rgba(46, 125, 50, 0.2); border: 1px solid #2e7d32; color: #a5d6a7; }
.flash--error { background: rgba(198, 40, 40, 0.2); border: 1px solid #c62828; color: #ef9a9a; }
.flash--warning { background: rgba(255, 193, 7, 0.1); border: 1px solid #5a4a0a; color: #ffd54f; }
.flash--info { background: rgba(30, 136, 229, 0.1); border: 1px solid #1a3a5a; color: #90caf9; }

@keyframes flashIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes flashOut { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-10px); } }

/* ===== CABINET ===== */
.cabinet { max-width: 720px; margin: 0 auto; padding: 2rem; }

.cabinet__header { text-align: center; margin-bottom: 2.5rem; }
.cabinet__title { font-size: 2rem; color: #c9a96e; margin-bottom: 0.5rem; }
.cabinet__subtitle { color: #b8a088; margin-bottom: 1.5rem; }

.cabinet__empty { text-align: center; color: #a09080; padding: 3rem; }

/* ===== HISTORY CARDS ===== */
.history { display: flex; flex-direction: column; gap: 1rem; }

.history-card {
    display: flex;
    gap: 1.2rem;
    padding: 1rem;
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 10px;
    transition: border-color 0.3s, transform 0.2s;
    background: rgba(255,255,255,0.02);
    align-items: center;
}

.history-card:hover {
    border-color: rgba(201,169,110,0.25);
    transform: translateY(-2px);
}

.history-card__preview {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #120808;
}

.history-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.history-card__info {
    flex: 1;
    min-width: 0;
}

.history-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.history-card__title {
    font-size: 1.1rem;
    color: #f5f0e8;
    font-weight: 600;
}

.history-card__date {
    font-size: 0.75rem;
    color: #5a3a2a;
    white-space: nowrap;
}

.history-card__guest,
.history-card__event-date {
    font-size: 0.8rem;
    color: #b8a088;
    display: inline-block;
    margin-right: 1rem;
}

.history-card__status {
    display: inline-block;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

.history-card__status--ready { color: #4caf50; }
.history-card__status--draft {
    color: #b8a088;
    animation: pulse 2s ease-in-out infinite;
}
.history-card__status--loading {
    color: #c9a96e;
    position: relative;
    overflow: hidden;
}
.history-card__status--loading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn--loading.spinning {
    animation: spin 1s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadingBar {
    0% { left: -100%; width: 50%; }
    50% { left: 25%; width: 50%; }
    100% { left: 100%; width: 50%; }
}

.history-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex-shrink: 0;
    max-width: 140px;
    align-items: flex-start;
}
.history-btn-group {
    display: flex;
    gap: 0.2rem;
    width: 100%;
}
.history-btn-group .history-btn {
    flex: 1;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(201,169,110,0.15);
    background: transparent;
    color: #b8a088;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.history-btn:hover {
    border-color: #c9a96e;
    color: #c9a96e;
    background: rgba(201,169,110,0.05);
}

.history-btn--primary {
    background: linear-gradient(135deg, #c9a96e, #a8863c);
    color: #1a0a0a;
    border: none;
}

.history-btn--primary:hover {
    background: linear-gradient(135deg, #d4b87a, #b89444);
    color: #1a0a0a;
}

.history-btn--danger:hover {
    border-color: #c44;
    color: #c44;
}

/* ===== FOOTER ===== */
.footer { padding: 2rem; text-align: center; border-top: 1px solid rgba(201,169,110,0.1); }
.footer p { font-size: 0.95rem; color: #c9a96e; margin-bottom: 0.5rem; }
.footer__links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.8rem; }
.footer__link { color: #a09080; text-decoration: none; transition: color 0.3s; }
.footer__link:hover { color: #c9a96e; }
.footer__sep { color: #5a3a2a; }

/* ===== LEGAL (Terms / Privacy) ===== */
.legal-page { min-height: 80vh; padding: 2rem; display: flex; justify-content: center; }
.legal-card { max-width: 720px; width: 100%; }
.legal-card__icon { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.legal-card__title { font-size: 2rem; color: #c9a96e; text-align: center; margin-bottom: 0.2rem; }
.legal-card__date { text-align: center; color: #5a3a2a; font-size: 0.8rem; margin-bottom: 2.5rem; }
.legal-content { border: 1px solid rgba(201,169,110,0.1); padding: 2rem; border-radius: 8px; }
.legal-content h2 { color: #c9a96e; font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #d0c8b8; font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.7; }
.legal-content strong { color: #f5f0e8; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { color: #d0c8b8; font-size: 0.9rem; margin-bottom: 0.3rem; line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    html { font-size: 16px; }
    .hero__title { font-size: 2rem; }
    .nav { padding: 0.8rem 1rem; }
    .cards { grid-template-columns: 1fr; }
    .invite-card { flex-direction: column; text-align: center; }
    .hero__actions { flex-direction: column; align-items: center; }
}


/* FEEDBACK WIDGET */
.fb-widget {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    font-family: 'JetBrains Mono', monospace;
}
.fb-widget__btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff; border: none; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(168,85,247,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.fb-widget__btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(168,85,247,0.55); }
.fb-widget__panel {
    width: 300px; background: #1e1e2e; border: 1px solid #313244;
    border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); overflow: hidden;
}
.fb-widget__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: #181825; border-bottom: 1px solid #313244;
    color: #cdd6f4; font-size: 14px; font-weight: 600;
}
.fb-widget__close {
    background: none; border: none; color: #6c7086; font-size: 20px; cursor: pointer; line-height: 1;
}
.fb-widget__close:hover { color: #f38ba8; }
.fb-widget__form { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fb-widget__input {
    background: #11111b; border: 1px solid #313244; border-radius: 10px;
    padding: 10px 14px; color: #cdd6f4; font-family: inherit; font-size: 13px;
    resize: vertical; outline: none;
}
.fb-widget__input:focus { border-color: #a855f7; }
.fb-widget__submit {
    background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff;
    border: none; border-radius: 10px; padding: 10px; font-size: 14px;
    cursor: pointer; font-family: inherit; font-weight: 600; transition: opacity 0.2s;
}
.fb-widget__submit:hover { opacity: 0.9; }
.fb-widget__thanks { padding: 20px; text-align: center; color: #a6e3a1; font-size: 14px; }
