body {
        margin: 0;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-style: normal;
        background-color: #0d0f0d; /* болотный тёмный фон */
        color: #e0e0e0;
    }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #1a1c1a;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
  
.preloader .logo {
    height: 60px;
	animation: 
	  pulse 0.55s ease-in-out infinite alternate,
	  breathe 0.55s ease-in-out infinite alternate;
}
  
@keyframes pulse {
	0% { opacity: 0.5; }
	100% { opacity: 1; }
}
  
@keyframes breathe {
	0% { transform: scale(0.95); }
	100% { transform: scale(1.05); }
}
  
.preloader-hidden {
	transform: translateY(-100%);
}

/* --- Header --- */
header {
    background-color: #1a1c1a;
    border-radius: 20px;
    margin: 20px auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex
;
align-items: center;
gap: 15px;
text-decoration: none;
}

header .logo:hover {
    transform: scale(1.01);
}

.logo img {
    height: 45px;
}

.logo h1 {
    font-size: 32px;
    color: #bada55;
    margin: 0;
    font-weight: 400;
}

.logo h1 > b {
    margin-right: 3px;
    font-weight: 800;
}

header button {
    text-decoration: none;
    background: #aaca49;
    color: #1a1c1a;
    padding: 5px 10px;
    border-radius: 10px;
    transition: background 0.2s;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

header button:hover {
    background: #94b040;
}

.content {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

/* --- Hero --- */
.hero {
border-radius: 20px;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
overflow: hidden;

background: linear-gradient(to right, rgba(27, 94, 32, 0.95) 0%, rgba(27, 94, 32, 0.9) 40%, rgba(27, 94, 32, 0.4) 70%, rgba(27, 94, 32, 0) 100%),
            url("/assets/hero.png") right 30% no-repeat;
background-size: cover;
}


.hero-content {
    z-index: 1;
}

.hero h2 {
    font-size: 32px;
    margin: 0 0 5px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.hero p {
    font-size: 1.1rem;
    margin: 0;
    color: #c5feaf;
}

.sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row;
    gap: 15px;
    color: #fff;
}

.section-item {
    background: #1a1c1a;
    border-radius: 20px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.section-item_desc {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-item h3 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.section-item p {
    margin: 0;
    color: #ccc;
    line-height: 1.15;
    font-size: 15px
}

.section-item button {
    margin: 0;
    padding: 5px 10px;
    font-size: 15px;
    border: none;
    color: #2d2d2d;
    background: #fff;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.section-item button:hover {
    background: #dddddd;
}

.section-skins {
    background: linear-gradient(to right, rgba(43, 43, 43, 1) 0%, rgba(43, 43, 43, 0.95) 40%, rgba(43, 43, 43, 0.9) 70%, rgba(43, 43, 43, 0.7) 100%),
            url("/assets/skins.png") left center no-repeat;
    background-size: cover;
    
}

.section-soon:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
}

.section-soon:last-child:nth-child(3n + 2) {
    grid-column: 2 / -1;
}


.docs-header {
    display: flex;
    background-color: #1a1c1a;
    border-radius: 20px;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
}

.docs-header h3 {
    margin: 0;
    font-size: 24px;
    background: #446737;
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    width: fit-content;
}

.docs-header button {
    margin: 0;
    padding: 5px 10px;
    font-size: 15px;
    border: none;
    color: #fff;
    background: #2d2d2d;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.docs-header button:hover {
    background: #4d4d4d;
}

.docs {
    background-color: #1a1c1a;
    border-radius: 20px;
    
    padding: 20px;

    display: flex
;
    flex-direction: column;
    gap: 15px;
}

.docs h3 {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    background: #575757;
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    width: fit-content;
}

.method {
    background: #0d0f0d;
    border-radius: 10px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method p {
    margin: 0;
    line-height: 1.2;
}

.method p > b {
    font-weight: 600;
    color: #c5feaf;
}

.method h4 {
    margin: 0;
    color: #fff;
}

.method pre {
    margin: 0;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
    color: #b9f6ca;
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background-color: #1a1c1a;
border-radius: 20px;
margin: 20px auto;
padding: 20px;
display: flex
;
font-size: 0.9rem;
color: #888;
flex-direction: column;
gap: 10px;
}

footer a {
    color: #7c7c7c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #888;
    padding: 10px 0 0;
}

.footer-container {
    display: flex;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth {
    max-width: 300px;
    width: 100%;
    background-color: #1a1c1a;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.auth-title {
    color: #000000;
    background: #aaca49;
    text-align: center;
    border-radius: 10px;
    padding: 5px;
    font-size: 24px;
    font-weight: 700;
}

.auth-agreement {
    color: #888;
    font-size: 12px;
    text-align: center;
    line-height: 1;
}

.auth-agreement a {
    color: #888;
    text-decoration: underline;
}

.auth-methods {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-method {
    display: flex;
    height: 40px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 10px;
    gap: 5px;
    color: #fff;
    padding: 0 10px;
    cursor: pointer;
}

.auth-method > img {
    width: 25px;
}

.auth-method_vk {
    background: #0077ff;
}

.auth-method_vk:hover {
    background: #0068de;
}

.auth-method_github {
    background: #333333;
}

.auth-method_github:hover {
    background: #2a2a2a;
}

.account {
    background: #1a1c1a;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account h1 {
    margin: 0;
    line-height: 1;
    font-size: 22px;
    color: #fff;
}

.account p {
    margin: 0;
    line-height: 1;
    font-size: 16px;
    color: #ccc;
}

.projects {
    background: #1a1c1a;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-header h1 {
    margin: 0;
    line-height: 1;
    font-size: 20px;
    color: #fff;
}

.project-header button.hide {
    display: none;
}

.project-header button {
    color: #1a1c1a;
    border: none;
    border-radius: 10px;
    background: #aaca49;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 16px;
}

.project-header button:hover {
    background: #94b040;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item {
    background: #0d0f0d;
    border-radius: 10px;
    display: flex;
    gap: 15px;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 0 15px 15px;
}

.project-title {
    display: flex;
    flex-direction: column;
}

.project-title input,
.project-title input:focus-visible {
    background: #373737;
    border: none;
    display: none;
    outline: none;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    padding: 3px 8px;
    width: fit-content;
}

.project-title h3 {
    position: relative;
    cursor: pointer;
}

.project-title:has(h3.edit) input {
    display: block;
}

.project-title h3.edit {
    display: none;
}

.project-title h3::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    top: 2px;
    /* top: calc(50% - 7.5px); */
    margin-left: 8px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.8477 1.87868C19.6761 0.707109 17.7766 0.707105 16.605 1.87868L2.44744 16.0363C2.02864 16.4551 1.74317 16.9885 1.62702 17.5692L1.03995 20.5046C0.760062 21.904 1.9939 23.1379 3.39334 22.858L6.32868 22.2709C6.90945 22.1548 7.44285 21.8693 7.86165 21.4505L22.0192 7.29289C23.1908 6.12132 23.1908 4.22183 22.0192 3.05025L20.8477 1.87868ZM18.0192 3.29289C18.4098 2.90237 19.0429 2.90237 19.4335 3.29289L20.605 4.46447C20.9956 4.85499 20.9956 5.48815 20.605 5.87868L17.9334 8.55027L15.3477 5.96448L18.0192 3.29289ZM13.9334 7.3787L3.86165 17.4505C3.72205 17.5901 3.6269 17.7679 3.58818 17.9615L3.00111 20.8968L5.93645 20.3097C6.13004 20.271 6.30784 20.1759 6.44744 20.0363L16.5192 9.96448L13.9334 7.3787Z' fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e");
}

.project-title h3:hover,
.project-title h3:hover::after {
    opacity: .8;
}

.project-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.project-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-key {
    display: flex;
    background: #1e1e1e;
    border-radius: 10px;
    overflow-x: auto;
    align-items: center;
}

.project-key span {
    padding: 10px 7.5px 10px 10px;
    color: #fff;
    border-right: 2px solid #0d0f0d;
    font-weight: 600;
    width: 65px;

}

.project-key pre {
    padding: 10px 10px 10px 7.5px;
    color: #b9f6ca;
    margin: 0;
}

.project-key svg {
    margin: 0 calc((40px - 25px) / 2) 0 auto;
    height:25px;
    cursor: pointer;
}

.project-key svg.loading {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.project-info .project-action p {
    margin: 0 0 5px 0;
}

.project-statistics {
    flex: 1.5;
    overflow: hidden;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.project-delete {
    color: #1a1c1a;
    border: none;
    border-radius: 10px;
    background: #ca4949;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 16px;
    width: fit-content;
    cursor: pointer;
}

.project-delete:hover {
    background: #b64242;
}

.project-empty.active {
    display: flex;
}

.project-empty {
    border: 3px dotted #363636;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
}

.project-empty .project-empty_card {
    background: #363636;
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.project-empty .project-empty_card:hover {
    background: #484848;
}

.project-empty .project-empty_card svg {
    width: 20px;
}

.document,
.notfound {
    background-color: #1a1c1a;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document h3,
.notfound h1 {
    text-align: center;
}

.document a {
    color: #fff;
    text-decoration: underline;
}

.document a:hover {
    color: #a9a9a9;
}

.document h3,
.document h4,
.document p,
.document ul,
.notfound h1 {
    margin: 0;
}

@media screen and (max-width: 768px){
    .sections {
        grid-template-columns: 1fr;
    }

    .section-soon:last-child:nth-child(3n + 2),
    .section-soon:last-child:nth-child(3n + 1) {
        grid-column: 1;
    }

    .docs-header {
        gap: 15px;
        flex-direction: column;
    }

    .project-info {
        padding: 15px;
    }

    .project-statistics {
        display: none;
    }

    .project-key span {
        width: auto;
        white-space: nowrap;
    }

    .project-key pre {
        padding: 10px 0px 10px 5px;
    }
}