@import url("../fonts/anton.css");
@import url("../fonts/inter.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    color: #0d1117;
    background: url("../img/texture.jpg") repeat;
    background-size: 800px 800px;
    background-color: #e8e0d1;
}

.navbar {
    background: #f5f1e8;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Anton", Impact, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0d1117;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -8px;
    width: 12px;
    height: 12px;
    background: #e53935;
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #0d1117;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.2rem;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

.nav-links a:hover {
    background: #0d1117;
    color: #f5f1e8;
    border: 2px solid #0d1117;
}

.nav-links a.active {
    background: #e0b800;
    color: #0d1117;
    border: 2px solid #0d1117;
    font-weight: 900;
}

.nav-links a.active::before {
    content: "▶";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #e53935;
    font-size: 0.8rem;
}

.mobile-menu-toggle {
    display: none;
    background: #0d1117;
    color: #f5f1e8;
    border: 3px solid #0d1117;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.8rem;
    font-family: "Inter", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-menu-toggle:hover {
    background: #e53935;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #0d1117;
    color: #f5f1e8;
    border-top: 4px solid #e53935;
    border-bottom: 4px solid #0d1117;
    padding: 1rem 0;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #333;
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #f5f1e8;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    padding: 1.2rem 2rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-links a:hover {
    background: #333;
    border-left: 4px solid #e53935;
}

.mobile-nav-links a.active {
    background: #e0b800;
    color: #0d1117;
    border-left: 4px solid #e53935;
    font-weight: 900;
}

.language-toggle {
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: #0d1117;
    color: #f5f1e8;
    border: 2px solid #0d1117;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1;
}

.lang-btn:hover {
    background: #e53935;
    border-color: #e53935;
}

.lang-btn i {
    font-size: 0.9rem;
}

.mobile-header-right {
    display: none;
    align-items: center;
    gap: 0.8rem;
}

.mobile-lang {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    gap: 0.3rem;
}

.mobile-lang i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-header-right {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
}

.paper-container {
    max-width: 1000px;
    margin: 70px auto;
    padding: 4rem 3rem;
    background: #f5f1e8;
    position: relative;
    mask: 
        linear-gradient(to right, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%);
    -webkit-mask: 
        linear-gradient(to right, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: intersect;
}

.paper-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../img/texture.jpg") repeat;
    background-size: 600px 600px;
    opacity: 0.4;
    pointer-events: none;
}

.paper-content {
    position: relative;
    z-index: 2;
}

.paper-title {
    font-family: "Anton", Impact, sans-serif;
    font-size: 7rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #0d1117;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    line-height: 0.8;
    position: relative;
}

.paper-title::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background: #e53935;
    transform: rotate(15deg);
    z-index: -1;
}

.paper-subtitle {
    font-family: "Inter", sans-serif;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0d1117;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.paper-subtitle::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: #e53935;
}

.section-title {
    font-family: "Anton", Impact, sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #0d1117;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

.section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #0d1117;
}

.section:last-of-type {
    border-bottom: none;
}

.section-content {
    font-family: "Inter", sans-serif;
    color: #0d1117;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info-section {
    background: #0d1117;
    color: #f5f1e8;
    padding: 3rem;
    border: none;
    position: relative;
}

.contact-info-section::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 30px;
    width: 60px;
    height: 15px;
    background: #e0b800;
    transform: rotate(-1deg);
    opacity: 0.8;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: #e53935;
    display: block;
}

.contact-label {
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #f5f1e8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-value {
    font-family: "Inter", sans-serif;
    color: #f5f1e8;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
}

.contact-value a {
    color: #e0b800;
    text-decoration: none;
    font-weight: 700;
}

.contact-value a:hover {
    color: #f5f1e8;
    text-decoration: underline;
}

.form-section {
    background: #f5f1e8;
    padding: 3rem;
    border: 3px solid #0d1117;
    position: relative;
}

.form-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 25px solid #f5f1e8;
    border-top: 25px solid #e53935;
}

.form-title {
    font-family: "Anton", Impact, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #0d1117;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #0d1117;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 3px solid #0d1117;
    background: #f5f1e8;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #0d1117;
    font-weight: 400;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #0d1117;
    color: #f5f1e8;
    border: 3px solid #e53935;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    font-family: "Inter", sans-serif;
}

.submit-btn {
    background: #0d1117;
    color: #f5f1e8;
    border: 3px solid #0d1117;
    padding: 1.2rem 2.5rem;
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.submit-btn:hover {
    background: #e53935;
    border: 3px solid #e53935;
}

.submit-btn::before {
    content: "▶";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #e0b800;
    font-size: 1rem;
}

.alert {
    padding: 2rem;
    margin-bottom: 2rem;
    border: 3px solid;
    position: relative;
}

.alert-success {
    background: #0d1117;
    color: #f5f1e8;
    border-color: #e0b800;
}

.alert-success::before {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e0b800;
    color: #0d1117;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transform: rotate(15deg);
}

.alert-error {
    background: #e53935;
    color: #f5f1e8;
    border-color: #0d1117;
}

.alert-error::before {
    content: "!";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0d1117;
    color: #e53935;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transform: rotate(15deg);
}

.content-section {
    background: #0d1117;
    color: #f5f1e8;
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: #f5f1e8;
    color: #0d1117;
    border: 3px solid #0d1117;
}

.content-section:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: -4px;
    right: 30px;
    width: 60px;
    height: 15px;
    background: #e0b800;
    transform: rotate(1deg);
    opacity: 0.8;
}

.content-section:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 25px solid #f5f1e8;
    border-top: 25px solid #e53935;
}

.content-title {
    font-family: "Anton", Impact, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.content-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    margin: 1rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.content-text {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1rem;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    padding: 0.5rem 0;
    border-left: 3px solid #e53935;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.content-list li::before {
    content: "▶";
    color: #e53935;
    margin-right: 0.8rem;
    font-size: 0.8rem;
}

.content-section:nth-child(even) .content-list li {
    border-left: 3px solid #0d1117;
}

.content-section:nth-child(even) .content-list li::before {
    color: #0d1117;
}

.info-box {
    background: rgba(224, 184, 0, 0.1);
    border: 2px solid #e0b800;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.info-box::before {
    content: "★";
    position: absolute;
    top: -8px;
    left: -8px;
    background: #e0b800;
    color: #0d1117;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .paper-container {
        margin: 80px 1rem;
        padding: 2.5rem 2rem;
        border-width: 3px;
    }
    
    .paper-title {
        font-size: 4.5rem;
        letter-spacing: -0.04em;
    }
    
    .paper-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-section,
    .form-section,
    .content-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .section {
        margin-bottom: 3rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .paper-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-title,
    .content-title {
        font-size: 2rem;
    }
}