:root {
    --bg-white: #ffffff;
    --black: #111111;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border-light: rgba(26, 26, 26, 0.15);
    --accent: #c74720;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 18px;
}

.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
.sketch-font {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.sketchy-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--accent);
    font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sketchy-btn:hover {
    transform: translateY(-2px) rotate(1deg);
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--text-main);
}

/* --- TO TOP --- */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- COMMON --- */
.pt-40 {
    padding-top: 40px;
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--text-muted);
}

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

.breadcrumbs a:hover {
    color: var(--text-main);
}

.breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-main);
}

section.content-section {
    margin-bottom: 100px;
}

section.content-section>h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--text-main);
    text-align: center;
}

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

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

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

.fs-28 {
    font-size: 28px;
}

/* --- FOOTER & HEADER --- */
.site-header {
    background-color: var(--black);
    color: var(--white);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 20px 0;
}

.header-inner,
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 36px;
    color: var(--accent);
    text-decoration: none;
    transform: rotate(-2deg);
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px) rotate(1deg) scale(1.05);
}

.logo-img {
    width: 35px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(-15deg) scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Caveat', cursive;
    font-size: 26px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

.footer-nav {
    gap: 24px;
}

.footer-nav li a {
    font-size: 22px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* --- HERO --- */
.hero-banner-full {
    position: relative;
    width: 100vw;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    overflow: hidden;
}

.hero-banner-full img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-main-text {
    position: relative;
    z-index: 3;
    max-width: 650px;
    text-align: center;
    color: var(--white);
    margin: 20px;
}

.hero-main-text h1 {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-main-text p {
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-main-text .sketchy-btn {
    color: var(--white);
    border-color: var(--white);
}

.hero-main-text .sketchy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- ABOUT --- */
.banner-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
}

.banner-text h2 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.banner-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.banner-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--border-light);
    border-radius: 4px 16px 8px 20px / 16px 4px 20px 8px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
    transform: rotate(1deg);
}

/* --- GAMES --- */
.game-card-large {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 450px;
    border-radius: 12px 6px 8px 16px / 16px 8px 6px 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s ease;
}

.game-card-large:hover {
    transform: translateY(-4px);
}

.game-card-large img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.game-card-large:hover img {
    transform: scale(1.05);
}

.game-card-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.game-card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.game-card-content .h3 {
    font-size: 38px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-card-action {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--white);
    padding: 6px 20px;
    border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
    transition: all 0.2s ease;
}

.game-card-large:hover .game-card-action {
    background-color: var(--accent);
    color: var(--white);
}

/* --- ARTICLES --- */
.card {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 4px 12px 6px 16px / 16px 4px 12px 6px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px 4px 6px 4px / 4px 6px 4px 8px;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.card .h3 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-main);
    transition: color 0.2s;
}

.card:hover .h3 {
    color: var(--accent);
}

.card p {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-action {
    margin-top: auto;
    font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.see-all-block {
    text-align: center;
    margin-top: 50px;
}

/* --- CONTACTS --- */
.contacts {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}

.contacts h2 {
    font-size: 42px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 700;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: transparent;
    transform: translateY(-2px) rotate(-1deg);
}

.social-links a i {
    font-size: 28px;
}

/* --- ARTICLE --- */
.article-page {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 850px;
    margin: 0 auto;
}

.article h1 {
    font-size: 64px;
    color: var(--text-main);
    margin: 30px 0 10px;
    line-height: 1.1;
    text-align: center;
}

.article-meta {
    font-family: 'Caveat', cursive;
    font-size: 26px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 40px;
}

.article-main-image {
    margin-bottom: 10px;
}

.article-main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px 6px 16px 8px / 6px 16px 8px 12px;
    transform: rotate(-1deg);
}

.article-content h2 {
    font-size: 36px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.article-content h3 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.article-content p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-main);
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px 16px 8px 16px / 16px 8px 16px 8px;
    margin: 30px 0;
    transform: rotate(1deg);
}

.article-content blockquote {
    margin: 50px 0;
    padding: 25px 40px;
    background-color: var(--bg-white);
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
    border: 2px solid var(--accent);
    font-family: 'Caveat', cursive;
    font-size: 32px;
    color: var(--accent);
    transform: rotate(-1deg);
}

.article-content ul,
.article-content ol {
    margin-bottom: 30px;
    padding-left: 0;
}

.article-content li {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
}

.article-content ul {
    list-style: none;
}

.article-content ul li {
    padding-left: 25px;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 12px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
    transform: rotate(-4deg);
}

.article-content ol {
    list-style-type: none;
    counter-reset: custom-counter;
}

.article-content ol li {
    padding-left: 35px;
    counter-increment: custom-counter;
}

.article-content ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: -2px;
    font-family: 'Caveat', cursive;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

/* --- ABOUT --- */
.about-hero {
    text-align: center;
    margin-bottom: 40px;
}

.about-hero p {
    margin-top: 10px;
    color: var(--accent);
}

.team-grid {
    margin-top: 40px;
}

.team-grid .card {
    text-align: center;
    border-radius: 20px 5px 20px 5px / 5px 20px 5px 20px;
    transform: none;
}

.team-grid .card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--accent);
    transform: rotate(-3deg);
    transition: transform 0.3s ease-out;
    backface-visibility: hidden;
}

.team-grid .card:hover img {
    transform: rotate(3deg) scale(1.05);
}

.team-grid .card:hover {
    transform: translateY(-4px);
}