:root {
    --blue: #2563eb;
    --blue-dark: #163b86;
    --sky: #eaf3ff;
    --cream: #fffaf0;
    --ink: #172033;
    --muted: #667085;
    --line: #d7e1f1;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(31, 74, 132, .13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .12), transparent 26rem),
        radial-gradient(circle at 88% 18%, rgba(255, 184, 77, .18), transparent 24rem),
        linear-gradient(180deg, #f5f9ff 0%, #fffdf7 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px clamp(18px, 5vw, 72px);
    color: #fff;
    background: rgba(20, 57, 126, .95);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 45, 100, .22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.paw-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #173d85;
    background: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .93rem;
}

.main-nav a:hover,
.nav-register {
    background: rgba(255, 255, 255, .16);
}

.page-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 30px auto 60px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 34px;
}

.hero-copy {
    padding: clamp(10px, 3vw, 36px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--blue-dark);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: .95;
    letter-spacing: -.07em;
}

.hero p {
    max-width: 660px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2d6df6, #16469d);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
}

.btn-light {
    color: var(--blue-dark);
    background: #fff;
    border: 1px solid var(--line);
}

.hero-visual {
    position: relative;
    min-height: 360px;
    padding: 48px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 20%),
        linear-gradient(135deg, #3b82f6, #173d85);
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(21, 60, 125, .22);
}

.hero-visual .big-paw {
    font-size: 5.5rem;
}

.hero-visual h2 {
    margin: 6px 0;
    font-size: 2rem;
}

.hero-visual p {
    margin: 0;
    color: rgba(255,255,255,.85);
}

.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 92px;
}

.card {
    position: relative;
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(215, 225, 241, .9);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card.compact {
    padding: 31px 29px;
}

.bone-card + .card {
    position: relative;
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(215, 225, 241, .9);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    background: #dbeafe;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #bed4fb;
}

.avatar.small {
    width: 40px;
    height: 40px;
}

.avatar.large {
    width: 106px;
    height: 106px;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-line strong,
.user-line span {
    display: block;
}

.user-line span {
    color: var(--muted);
    font-size: .86rem;
}

.menu-list {
    display: grid;
    gap: 8px;
}

.menu-list a {
    padding: 11px 13px;
    border-radius: 14px;
    font-weight: 800;
}

.menu-list a:hover {
    background: var(--sky);
    color: var(--blue-dark);
}

.post-form textarea,
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 15px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    outline: none;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #75a7ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.post-card {
    margin-top: 20px;
}

.post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.post-body {
    line-height: 1.65;
    white-space: pre-wrap;
}

.post-image {
    margin-top: 16px;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 26px;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--blue-dark);
    background: var(--sky);
    font-weight: 900;
    cursor: pointer;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    padding: 14px;
    border-radius: 18px;
    background: #f5f8ff;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--blue-dark);
}

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

.people-list {
    display: grid;
    gap: 13px;
}

.profile-header {
    text-align: center;
}

.profile-header .avatar {
    margin: 0 auto 14px;
}

.profile-header h1 {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 900;
}

.auth-shell {
    width: min(620px, 100%);
    margin: 42px auto;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 26px clamp(18px, 5vw, 72px);
    color: #dce8ff;
    background: #102f68;
}

.site-footer a {
    margin-left: 14px;
}

.empty-state {
    text-align: center;
    padding: 25px;
    color: var(--muted);
}

.flash {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.flash.success {
    color: #11552d;
    background: #dcfce7;
}

.flash.error {
    color: #8b1d1d;
    background: #fee2e2;
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .layout > .sidebar:last-child {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .hero-visual {
    position: relative;
    min-height: 360px;
    padding: 48px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 20%),
        linear-gradient(135deg, #3b82f6, #173d85);
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(21, 60, 125, .22);
}


.card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(31, 74, 132, .16);
}
