:root {
    --primary-dark: #0d0f0c;
    --secondary-dark: #1a1d18;
    --tertiary-dark: #2d3028;
    --accent-steel: #8a8d7f;
    --accent-stone: #6b6e62;
    --accent-wild: #d4d0b5;
    --accent-warning: #d4b537;
    --text-light: #f0f0e8;
    --text-muted: #a0a294;
    --border-dark: #3a3d35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 15, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--accent-wild);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: var(--accent-steel);
}

.nav-links, .nav-auth {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-wild);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-wild);
}

.nav-link.active {
    color: var(--accent-wild);
}

.nav-link.active::before {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--border-dark);
    background: rgba(45, 48, 40, 0.3);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.auth-btn:hover {
    border-color: var(--accent-steel);
    background: rgba(138, 141, 127, 0.1);
    transform: translateY(-1px);
}

.login-btn {
    background: rgba(45, 48, 40, 0.5);
}

.register-btn {
    background: linear-gradient(45deg, var(--tertiary-dark), var(--accent-steel));
}

.about-hero {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2) grayscale(0.3);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 15, 12, 0.95) 0%, rgba(26, 29, 24, 0.8) 50%, rgba(13, 15, 12, 0.95) 100%);
}

.about-hero-content {
    text-align: center;
    z-index: 2;
    padding-top: 100px;
    width: 100%;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-title .title-line {
    display: block;
    color: var(--accent-wild);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.about-title .title-subline {
    display: block;
    font-size: 1.3rem;
    color: var(--accent-steel);
    font-weight: 400;
    margin-top: 0.5rem;
}

.about-content {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-dark);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1.2rem 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn.active {
    color: var(--accent-wild);
    border-bottom-color: var(--accent-wild);
}

.tab-btn:hover:not(.active) {
    color: var(--accent-steel);
}

.tabs-content {
    background: rgba(26, 29, 24, 0.6);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
}

.tab-pane {
    display: none;
    padding: 0;
}

.tab-pane.active {
    display: block;
}

.tab-content-inner {
    padding: 3rem;
}

.tab-content-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent-wild);
    margin-bottom: 2rem;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.rule-card {
    background: rgba(45, 48, 40, 0.3);
    padding: 2rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 141, 127, 0.1), transparent);
    transition: left 0.5s ease;
}

.rule-card:hover::before {
    left: 100%;
}

.rule-card:hover {
    border-color: var(--accent-steel);
    transform: translateY(-5px);
}

.rule-card h3 {
    color: var(--accent-wild);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.rule-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    color: var(--text-muted);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.rule-card li::before {
    content: '•';
    color: var(--accent-steel);
    position: absolute;
    left: 0;
}

.territory-map {
    padding: 2rem 0;
}

.map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.map-region {
    background: rgba(45, 48, 40, 0.5);
    padding: 2rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-region::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(138, 141, 127, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-region:hover::before {
    opacity: 1;
}

.map-region:hover {
    border-color: var(--accent-steel);
    transform: translateY(-3px);
}

.map-region h3 {
    color: var(--accent-wild);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-region p {
    color: var(--text-muted);
    line-height: 1.6;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.author-card {
    background: rgba(45, 48, 40, 0.3);
    padding: 2rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.author-card:hover {
    border-color: var(--accent-steel);
    transform: translateY(-3px);
}

.author-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.author-card h3 {
    color: var(--accent-wild);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.author-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-info {
    background: rgba(45, 48, 40, 0.5);
    padding: 2rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    text-align: center;
}

.contact-info h3 {
    color: var(--accent-wild);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.main-footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border-dark);
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent-wild);
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-info p {
    margin-bottom: 0.3rem;
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 12, 0.95);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.auth-modal.active {
    display: flex;
    align-items: flex-start;
}

.auth-container {
    background: var(--secondary-dark);
    border: 1px solid var(--border-dark);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 2rem;
    width: 400px;
    height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    overflow-y: auto;
}

.dog-animation {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: calc(100% - 400px);
    opacity: 0;
    z-index: 1999;
    pointer-events: none;
    transition: all 0.6s ease-in-out;
}

.dog-animation.visible {
    right: 0;
    opacity: 1;
}

.dog-image {
    width: 100%;
    height: 100%;
    background: url('../images/dog.png') no-repeat center center;
    background-size: contain;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: var(--accent-wild);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--accent-wild);
    border-bottom-color: var(--accent-wild);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--accent-steel);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--accent-steel);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-wild);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line {
    width: 100%;
}

.auth-submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, var(--tertiary-dark), var(--accent-steel));
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: none;
}

.auth-submit-btn:hover {
    border-color: var(--accent-wild);
    transform: translateY(-1px);
}

.auth-submit-btn .btn-hover {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 208, 181, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-submit-btn:hover .btn-hover {
    left: 100%;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.paw-loading {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.paw {
    font-size: 2rem;
    opacity: 0;
    animation: pawJump 1.5s infinite;
}

.paw:nth-child(1) { animation-delay: 0s; }
.paw:nth-child(2) { animation-delay: 0.2s; }
.paw:nth-child(3) { animation-delay: 0.4s; }
.paw:nth-child(4) { animation-delay: 0.6s; }

@keyframes pawJump {
    0%, 100% { opacity: 0; transform: translateY(20px) scale(0.8); }
    50% { opacity: 1; transform: translateY(0) scale(1.1); }
}

.loading-text {
    color: var(--accent-wild);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--accent-wild);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
    
.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(13, 15, 12, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: left 0.3s ease;
    padding: 80px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-dark);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--accent-wild);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.mobile-auth-btn {
    padding: 1rem;
    border: 1px solid var(--border-dark);
    background: rgba(45, 48, 40, 0.5);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
}

.mobile-auth-btn:hover {
    border-color: var(--accent-steel);
    background: rgba(138, 141, 127, 0.1);
}

.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(74, 74, 106, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border-left: 4px solid #4a4a6a;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.notification.success {
    background: rgba(77, 255, 184, 0.9);
    border-left-color: #4dffb8;
}

.notification.error {
    background: rgba(255, 77, 77, 0.9);
    border-left-color: #ff4d4d;
}

.notification.warning {
    background: rgba(255, 217, 77, 0.9);
    border-left-color: #ffd94d;
}

.notification-content {
    display: flex;
    justify-content: between;
    align-items: center;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}
    
@media (max-width: 1024px) {
    .about-title {
        font-size: 3rem;
    }

    .tab-content-inner h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links, .nav-auth {
        display: none;
    }
    
    .about-hero {
        min-height: 50vh;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-title .title-subline {
        font-size: 1.1rem;
    }
    
    .about-content {
        padding: 2rem 1rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-dark);
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--border-dark);
        border-left-color: var(--accent-wild);
    }
    
    .tab-content-inner {
        padding: 2rem 1.5rem;
    }
    
    .tab-content-inner h2 {
        font-size: 2rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rule-card {
        padding: 1.5rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .auth-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border-left: 1px solid var(--border-dark);
    }
    
    .dog-animation {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .notification {
        min-width: 250px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
    padding: 1rem;
    }

    .about-title {
        font-size: 2rem;
    }
    
    .about-title .title-subline {
        font-size: 1rem;
    }
    
    .tab-content-inner {
        padding: 1.5rem 1rem;
    }
    
    .tab-content-inner h2 {
        font-size: 1.8rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-card, .map-region, .author-card {
        padding: 1rem;
    }
    
    .mobile-menu {
        padding: 70px 1rem 1rem;
    }
    
    .auth-container {
        padding: 1.5rem 1rem;
    }
    
    .notification {
        min-width: 200px;
        right: 5px;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 360px) {
    .about-title {
    font-size: 1.8rem;
    }

    .tab-content-inner h2 {
        font-size: 1.6rem;
    }
    
    .tabs-nav {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
