/* =========================
   Google Font: Unbounded
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800&display=swap');

/* =========================
   Variables
   ========================= */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
    --bs-border-radius: 12px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 18px;

    --color-bg-main: #0f1115;
    --color-bg-secondary: #1a1d20;
    --color-bg-card: #1f2328;

    --color-text-main: #f1f3f5;
    --color-text-muted: #adb5bd;

    --color-accent: #4dabf7;
    --color-accent-soft: rgba(77, 171, 247, 0.15);
}

/* =========================
   Base layout
   ========================= */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Unbounded', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    letter-spacing: 0.02em;
}

#app {
    flex-shrink: 0;
    padding-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.2s ease;
}

a:hover {
    color: #74c0fc;
}

h1,
.h1 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

p {
    color: var(--color-text-muted);
}

/* =========================
   Navbar & Footer
   ========================= */
.footer {
    background: linear-gradient(180deg, #1a1d20 0%, #14171a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.copy-address {
    border-radius: var(--bs-border-radius-sm);
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    background: #2b3036;
    color: var(--color-text-main);
    font-weight: 500;
    transition: background 0.2s ease;
}

.copy-address:hover {
    background: #343a40;
}

/* =========================
   HERO / Background
   ========================= */
.home-background {
    position: relative;
    height: 600px;
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
}

.background-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* =========================
   Hero title
   ========================= */
.hero-title {
    font-weight: 800; /* жирно, как ты просил */
    letter-spacing: 0.14em;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(255,255,255,0.15),
        0 10px 40px rgba(0,0,0,0.6);
}

/* =========================
   Hero subtitle
   ========================= */
.hero-subtitle {
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   Update badge
   ========================= */
.hero-update {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;

    color: #ffffff;
    background: rgba(15, 17, 21, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.hero-update span {
    color: var(--color-accent);
    font-weight: 700;
}

/* =========================
   Mobile tuning
   ========================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
        letter-spacing: 0.1em;
    }

    .hero-update {
        font-size: 0.65rem;
        padding: 5px 14px;
    }
}

/* =========================
   Cards (Global)
   ========================= */
.card,
.post-preview,
.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.post-preview:hover,
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
}

/* =========================
   Post preview
   ========================= */
.post-preview {
    position: relative;
    overflow: hidden;
}

.post-preview img {
    width: 100%;
    display: block;
}

.post-preview .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.1rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease;
}

.post-preview:hover .title {
    background: rgba(15, 17, 21, 0.95);
}

/* =========================
   Feature cards
   ========================= */
.feature-card {
    padding: 32px;
    position: relative;
    height: 100%;
}

.feature-index {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
}

.feature-card h5 {
    margin-bottom: 12px;
}

/* =========================
   Prism Navbar
   ========================= */
.prism-navbar {
    background: rgba(15, 17, 21, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    padding: 1.1rem 0;
    z-index: 1000;
}

.prism-navbar.scrolled {
    background: rgba(15, 17, 21, 0.92);
    padding: 0.6rem 0;
}

/* Logo */
.navbar-brand img {
    height: 44px;
    border-radius: 8px;
}

.site-name {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Nav links */
.prism-navbar .nav-link {
    font-weight: 500;
    opacity: 0.85;
    position: relative;
    transition: opacity 0.2s ease;
}

.prism-navbar .nav-link:hover {
    opacity: 1;
}

.prism-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Dropdown */
.dropdown-menu {
    background: var(--color-bg-card);
    border-radius: var(--bs-border-radius);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.dropdown-item {
    color: var(--color-text-main);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* =========================
   Buttons
   ========================= */
.btn-rounded {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
}

/* =========================
   Section Divider
   ========================= */
.section-divider {
    height: 120px;
    margin: 80px 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--color-accent-soft) 50%,
        transparent 100%
    );
    clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
    .home-background {
        height: 460px;
    }

    h1,
    .h1 {
        font-size: 2.4rem;
    }

    .section-divider {
        height: 80px;
        margin: 60px 0;
    }
}

/* =========================
   Section header (News)
   ========================= */
.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================
   News card
   ========================= */
.news-card {
    height: 100%;
    background: rgba(31, 35, 40, 0.75);
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.6);
}

.news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* =========================
   News image
   ========================= */
.news-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Date badge */
.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: #fff;
    background: rgba(15,17,21,0.65);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* =========================
   News content
   ========================= */
.news-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.news-read {
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* =========================
   Mobile tweaks
   ========================= */
@media (max-width: 768px) {
    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }
}

/* =========================
   Центрирование и отступ от Navbar
   ========================= */
.register-wrapper {
    min-height: calc(100vh - 80px); /* отступ от navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #0f1115;
}

/* =========================
   Карточка регистрации
   ========================= */
.register-card {
    width: 100%;
    max-width: calc(500px + 1rem * var(--hero-scale)); /* динамическая ширина под заголовок */
    min-width: 300px;
    background: rgba(25, 28, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.register-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

/* =========================
   Заголовок
   ========================= */
.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem); /* масштабирование под экран */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* =========================
   Поля формы
   ========================= */
.form-floating .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #f1f3f5;
    font-weight: 500;
    transition: all 0.25s ease;
}

.form-floating .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: #4dabf7;
    box-shadow: 0 0 0 0.2rem rgba(77,171,247,0.25);
    color: #fff;
}

.form-floating label {
    color: #adb5bd;
    font-weight: 500;
}

/* =========================
   Кнопка
   ========================= */
.btn-rounded {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: #4dabf7;
    border-color: #4dabf7;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #74c0fc;
    border-color: #74c0fc;
}

/* =========================
   Чекбокс
   ========================= */
.form-check-input:checked {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

/* =========================
   Ошибки
   ========================= */
.invalid-feedback {
    font-size: 0.85rem;
    color: #ff6b6b;
}

/* =========================
   Адаптация ширины под hero-title
   ========================= */
:root {
    --hero-scale: 0; /* можно менять динамически через JS, если надо */
}

@media (min-width: 768px) {
    .register-card {
        width: auto;
        padding: 2.5rem 3rem;
    }
}
