/* === Local Roboto font START === */
@font-face {
    font-family: Roboto;
    src: url('/assets/fonts/roboto/roboto-v51-cyrillic_cyrillic-ext_latin-regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: Roboto;
    src: url('/assets/fonts/roboto/roboto-v51-cyrillic_cyrillic-ext_latin-500.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: Roboto;
    src: url('/assets/fonts/roboto/roboto-v51-cyrillic_cyrillic-ext_latin-700.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: Roboto;
    src: url('/assets/fonts/roboto/roboto-v51-cyrillic_cyrillic-ext_latin-900.woff2') format('woff2');
    font-style: normal;
    font-weight: 900;
}
/* === Local Roboto font END === */

:root {
    --main: #1757a6;
    --main-dark: #103f7a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #eef3f9;
    --paper: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #cbd5e1;
    --danger: #dc2626;
    --shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: Roboto, Arial, sans-serif;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.page {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(238, 243, 249, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.topbar-inner {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 8px 10px;
}

.search-line {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto auto auto auto;
    gap: 6px;
    align-items: center;
}

.logo {
    height: 42px;
    min-width: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--main);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.7px;
    box-shadow: 0 4px 12px rgba(23, 87, 166, 0.22);
}

.search-box {
    height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* === Header search button START === */
.search-submit-btn {
    min-height: 28px;
    grid-column: 4;
    justify-self: end;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--main);
    background: var(--main);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.search-submit-btn:hover {
    background: var(--main-dark);
    border-color: var(--main-dark);
}

/* === Header search button END === */

.search-box:focus-within {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(23, 87, 166, 0.10);
}

.search-icon {
    color: var(--muted);
    font-size: 16px;
}

.search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.search-input::placeholder {
    color: #9ca3af;
}

.filter-select {
    height: 42px;
    min-width: 156px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
    padding: 0 10px;
    outline: 0;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-select:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(23, 87, 166, 0.10);
}

/* === Header search clear button START === */
.search-box {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 0 1px 0 10px;
}

.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear-btn {
    width: 28px;
    min-height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
}

.search-clear-btn:hover {
    color: var(--main);
}

.search-box.has-search-value .search-clear-btn {
    display: inline-flex;
}

/* === Mobile header search clear button START === */
@media (max-width: 680px) {
    .search-box.has-search-value .search-clear-btn {
        display: none;
    }
}

/* === Mobile header search clear button END === */
/* === Header search clear button END === */

.add-btn,
.topbar-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid var(--main);
    background: var(--main);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.add-btn:hover,
.topbar-btn:hover {
    background: var(--main-dark);
    border-color: var(--main-dark);
    transform: translateY(-1px);
}

.lang-menu {
    position: relative;
}

.lang-btn {
    width: 92px;
}

.lang-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    z-index: 80;
    min-width: 92px;
    display: none;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.lang-dropdown a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.lang-dropdown a:hover {
    background: #eef6ff;
    color: var(--main);
}

.lang-menu.active .lang-dropdown {
    display: block;
}

.user-dropdown {
    min-width: 176px;
}

.user-dropdown a {
    gap: 8px;
}

.quick-row {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-top: 7px;
    scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
    display: none;
}

.quick-tag {
    min-height: 28px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.quick-tag.active,
.quick-tag:hover {
    border-color: var(--main);
    background: #eef6ff;
    color: var(--main);
}

.board {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 8px 10px 26px;
}

.masonry {
    column-count: 5;
    column-gap: 6px;
}

.post-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 6px;
    overflow: hidden;
    background: #d1d5db;
    break-inside: avoid;
    border: 1px solid rgba(17, 24, 39, 0.08);
    vertical-align: top;
}

.post-card:hover {
    border-color: rgba(23, 87, 166, 0.36);
    box-shadow: var(--shadow);
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.post-card:hover img {
    transform: scale(1.025);
}

.post-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 78px;
    display: grid;
    align-content: end;
    gap: 7px;
    padding: 42px 9px 9px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    color: #ffffff;
}

.post-title {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.meta-pill {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.post-price {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    background: rgba(23, 87, 166, 0.95);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

.vip {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* === Home posts photo placeholder START === */
.post-photo-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #103f7a 0%, #1757a6 48%, #3b82f6 100%);
    transition: transform 0.25s ease;
}

.post-card:hover .post-photo-placeholder {
    transform: scale(1.07);
}

.post-photo-placeholder::before {
    content: "";
    position: absolute;
    top: -32%;
    right: -20%;
    width: 72%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.post-photo-placeholder::after {
    content: "";
    position: absolute;
    bottom: -38%;
    left: -24%;
    width: 86%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.14);
}

.post-photo-placeholder i {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.84);
    font-size: 42px;
}

.rk-image-loader:has(.post-photo-placeholder)::before {
    display: none;
}
/* === Home posts photo placeholder END === */

/* === Home posts masonry START === */
.masonry.js-home-posts-grid.is-ready {
    display: block;
    column-count: auto;
    column-width: auto;
}

.masonry.js-home-posts-grid .home-posts-grid-items {
    --home-posts-columns: 2;
    display: grid;
    grid-template-columns: repeat(var(--home-posts-columns), minmax(0, 1fr));
    gap: inherit;
}

.masonry.js-home-posts-grid.is-ready .home-posts-grid-items {
    display: flex;
    align-items: flex-start;
    gap: var(--home-posts-column-gap);
}

.masonry.js-home-posts-grid.is-ready .home-post-grid-column {
    display: flex;
    flex: 0 0 calc((100% - ((var(--home-posts-columns) - 1) * var(--home-posts-column-gap))) / var(--home-posts-columns));
    flex-direction: column;
    gap: var(--home-posts-row-gap);
    min-width: 0;
}

.masonry.js-home-posts-grid .home-post-photo-card {
    display: block;
    width: 100%;
    min-width: 0;
}

.masonry.js-home-posts-grid .home-post-photo-card.rk-image-loader:not(.loaded) {
    aspect-ratio: 1 / 1;
}

.masonry.js-home-posts-grid .home-post-photo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.masonry.js-home-posts-grid .home-posts-grid-sentinel {
    height: 1px;
}

@media (min-width: 721px) {
    .masonry.js-home-posts-grid .home-posts-grid-items {
        --home-posts-columns: 3;
    }
}

@media (min-width: 1025px) {
    .masonry.js-home-posts-grid .home-posts-grid-items {
        --home-posts-columns: 5;
    }
}

/* === RK image loader START === */
.rk-image-loader {
    position: relative;
    overflow: hidden;
    background: #f8fbff;
}

.rk-image-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, #f8fbff 0%, #dbeafe 45%, #f8fbff 90%);
    background-size: 220% 100%;
    animation: rkImageLoader 1.4s linear infinite;
}

.rk-image-loader.loaded::before {
    display: none;
}

.rk-image-loader img {
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.rk-image-loader.loaded img {
    opacity: 1;
}

@keyframes rkImageLoader {
    0% {
        background-position: 220% 0;
    }

    100% {
        background-position: -220% 0;
    }
}

/* === RK image loader END === */

/* === Home search empty START === */
.home-posts-empty {
    min-height: calc(100dvh - 127px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 28px 12px;
    text-align: center;
}

.home-posts-empty h1 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.home-posts-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.home-posts-empty-ad {
    width: min(100%, 728px);
    min-height: 90px;
    display: grid;
    place-items: center;
    margin-top: 12px;
    border: 1px dashed var(--line);
    background: var(--paper);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 680px) {
    .home-posts-empty {
        min-height: calc(100dvh - 117px);
        padding: 22px 10px;
    }

    .home-posts-empty h1 {
        font-size: 21px;
    }
}

/* === Home search empty END === */

/* === Home posts masonry END === */

@media (max-width: 1280px) {
    .masonry {
        column-count: 4;
    }
}

@media (max-width: 980px) {
    .search-line {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto auto auto;
    }

    .filter-select {
        display: none;
    }

    /* === Home top button tablet START === */
    .home-top-btn {
        width: 42px;
        padding: 0;
        font-size: 0;
        gap: 0;
    }

    .home-top-btn i {
        font-size: 16px;
    }

    /* === Home top button tablet END === */

    .masonry {
        column-count: 3;
    }
}

@media (max-width: 680px) {
    .topbar-inner {
        padding: 7px;
    }

    .search-line {
        grid-template-columns: 44px minmax(0, 1fr) 40px 40px 40px 40px;
        gap: 4px;
    }

    .logo {
        width: 44px;
        min-width: 44px;
        height: 40px;
        padding: 0;
        font-size: 0;
    }

    .logo::before {
        content: "RK";
        font-size: 17px;
        font-weight: 900;
    }

    .search-box {
        min-width: 0;
        height: 40px;
        padding: 0 8px;
    }

    .search-input {
        min-width: 0;
        font-size: 14px;
    }

    /* === Mobile header search icon START === */
    .search-box {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .search-box .search-icon {
        display: none;
    }

    /* === Mobile header search icon END === */

    .home-top-btn {
        display: none;
    }

    .add-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 0;
        gap: 0;
    }

    .add-btn::before {
        content: "+";
        font-size: 26px;
        line-height: 1;
    }

    .topbar-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .contact-top-btn {
        font-size: 0;
        gap: 0;
    }

    .contact-top-btn i {
        font-size: 16px;
    }

    .login-top-btn {
        font-size: 0;
        gap: 0;
    }

    .login-top-btn .fa-user {
        font-size: 16px;
    }

    .user-btn .fa-chevron-down {
        display: none;
    }

    .lang-menu {
        width: 40px;
        min-width: 40px;
    }

    .lang-btn {
        font-size: 13px;
        font-weight: 900;
        gap: 0;
    }

    .lang-btn i {
        display: none;
    }

    .lang-dropdown {
        top: 44px;
        right: 0;
    }

    .board {
        padding: 6px 6px 22px;
    }

    .masonry {
        column-count: 2;
        column-gap: 5px;
    }

    .post-card {
        margin-bottom: 5px;
    }

    .post-title {
        font-size: 13px;
    }

    .post-overlay {
        padding: 34px 7px 7px;
    }

    .meta-pill {
        min-height: 20px;
        padding: 0 6px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .masonry {
        column-count: 1;
    }
}

.sections-library {
    width: 100%;
    max-width: 1540px;
    margin: 34px auto 0;
    padding: 0 10px 42px;
}

.section-block {
    margin-top: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.section-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: #f9fafb;
}

.section-head h2 {
    margin: 0;
    color: var(--main);
    font-size: 17px;
    line-height: 1.15;
    font-weight: 900;
}

.section-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

/* === Common content section START === */
.content-box {
    padding: 20px;
}

.content-inner {
    max-width: 920px;
}

.content-title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.content-text {
    margin: 0 0 14px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.content-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0;
}

.content-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    background: #f3f4f6;
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 900;
}

.content-note-box {
    margin-top: 16px;
    padding: 12px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

@media (max-width: 680px) {
    .content-box {
        padding: 14px;
    }

    .content-title {
        font-size: 22px;
    }

    .content-text {
        font-size: 14px;
    }
}

/* === Common content section END === */

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.auth-panel {
    padding: 16px;
    border-right: 1px solid var(--line);
}

.auth-panel:last-child {
    border-right: 0;
}

.auth-panel h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
}

.auth-panel p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.form-stack {
    display: grid;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-row-four {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.input-control,
.textarea-control,
.select-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--main);
    background: #ffffff;
    color: var(--text);
    padding: 0 10px;
    outline: 0;
    font-size: 14px;
    font-weight: 400;
}

.input-control[readonly],
.textarea-control[readonly],
.select-control[readonly] {
    background: #eef6ff;
    border-color: var(--main);
    color: #1e3a8a;
    cursor: default;
}

.textarea-control {
    min-height: 122px;
    padding-top: 10px;
    resize: vertical;
}

.input-control:focus,
.textarea-control:focus,
.select-control:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(23, 87, 166, 0.10);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.form-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.form-btn.main {
    background: var(--main);
    border-color: var(--main);
    color: #ffffff;
}

.form-btn:hover {
    border-color: var(--main);
    color: var(--main);
    box-shadow: var(--shadow);
}

.form-btn.main:hover {
    background: var(--main-dark);
    border-color: var(--main-dark);
    color: #ffffff;
}

/* === Header action button START === */
.header-action-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--main);
    background: var(--main);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-action-btn:hover {
    background: var(--main-dark);
    border-color: var(--main-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 87, 166, 0.22);
}

.header-action-btn i {
    font-size: 12px;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 680px) {
    .header-action-btn {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }
}

/* === Header action button END === */

/* === Login code form START === */
.login-step {
    display: grid;
    gap: 10px;
}

.login-step.is-hidden {
    display: none;
}

.form-btn:disabled {
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
}

.form-btn:disabled:hover {
    border-color: var(--line);
    color: var(--text);
    box-shadow: none;
}

.form-btn.main:disabled:hover {
    background: var(--main);
    border-color: var(--main);
    color: #ffffff;
}

/* === Login code form END === */

/* === Login form messages START === */
.login-message {
    margin-top: 2px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.login-step .cf-turnstile {
    display: flex;
    justify-content: center;
}

.login-spinner {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: loginSpin 0.8s linear infinite;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

/* === Login form messages END === */

.post-form-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
}

.post-form-main {
    padding: 16px;
    border-right: 1px solid var(--line);
}

.photo-panel {
    padding: 16px;
    background: #f9fafb;
}

.photo-drop {
    min-height: 230px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 2px dashed var(--line);
    background: #ffffff;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.photo-drop:hover {
    border-color: var(--main);
    background: #f8fbff;
}

.photo-drop strong {
    display: block;
    margin-bottom: 6px;
    color: var(--main);
    font-size: 18px;
    font-weight: 900;
}

.photo-drop span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.photo-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.photo-thumb {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
    font-size: 22px;
    font-weight: 900;
}

.price-grid {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    gap: 10px;
}

@media (max-width: 980px) {

    .auth-wrap,
    .post-form-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .post-form-main {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 680px) {
    .sections-library {
        padding: 0 6px 32px;
    }

    .section-head {
        padding: 10px;
    }

    .form-row,
    .form-row-two,
    .form-row-three,
    .form-row-four,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .post-form-main,
    .photo-panel {
        padding: 12px;
    }

    .photo-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* === Login page position START === */
.login-page-preview {
    min-height: calc(100dvh - 127px);
    display: grid;
    place-items: center;
    padding: 28px 12px;
}

@media (max-width: 680px) {
    .login-page-preview {
        min-height: calc(100dvh - 117px);
    }
}

/* === Login page position END === */

.login-card {
    width: min(430px, 100%);
    background: #ffffff;
    border: 1px solid var(--line);
}

.login-card-head {
    padding: 18px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.login-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    background: var(--main);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.login-card-head h3 {
    margin: 0 0 6px;
    color: var(--main);
    font-size: 24px;
    line-height: 1.12;
    font-weight: 900;
}

.login-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.login-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.login-extra {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.login-extra a {
    color: var(--main);
}