/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #ffffff;
    color: #000000;
    line-height: 1;
    overflow-x: hidden;
	max-width: 60%;        /* Или укажите конкретную, например 1920px */
    margin: 0 auto;         /* Центрирование сайта на экране */
}

/* Header */
.header {
max-width: 60%; 
margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 10px;
    background: #ffffff;
    #border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
}

/* Logo */
.logo {
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    letter-spacing: 0;
    z-index: 101;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

/* Menu Toggle Button - TEXT */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 101;
}

.menu-toggle-text {
    font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.menu-toggle:hover .menu-toggle-text {
    color: #666;
}

/* Mobile Menu - Dropdown */
.mobile-menu {
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 99;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    #border-bottom: 1px solid #f0f0f0;
}

.mobile-menu.active {
    max-height: 400px;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    gap: 20px;
}

.mobile-nav-link {
	font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #000;
}

/* Main Content */
.main-content,
.projects-main,
.about-main,
.contacts-main {
    padding-top: 60px;
    min-height: 100vh;
    transition: padding-top 0.4s ease;
}

/* When mobile menu is active, push content down */
body.menu-open .main-content,
body.menu-open .projects-main,
body.menu-open .about-main,
body.menu-open .contacts-main {
    padding-top: 300px;
}

/* Image Container */
.image-container {
    width: 100%;            /* На всю ширину экрана */
    max-width: 100%;        /* Убираем ограничение 1600px */
    margin: 0;              /* Убираем отступы по бокам */
    padding: 0;             /* Убираем внутренние отступы */
    height: 90dvh;          /* Высота остаётся 90% от viewport */
    overflow: hidden;       /* Обрезает всё, что выходит за рамки */
    position: relative;
}

.hero-image {
	position: absolute;
    width: 103%;
    height: 100%;
    display: block;
    object-fit: cover;      /* Заполняет контейнер без искажений */
    object-position: left;
    animation: kenburns 11s ease-in-out infinite alternate;
    transform-origin: center center; /* Зум строго из центра */
    will-change: transform;
	z-index: 1;
}
.hero-content {
    position: absolute; /* Или absolute, если нужно конкретное место */
    z-index: 2; /* Поверх картинки */
    color: #fff; /* Белый текст */
    #text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* Тень для читаемости */
    
    /* Центрирование или отступы */
    display: flex;
    #justify-content: center;
    #align-items: center;
    #height: 100%;
    #text-align: center;
    padding: 10px;
	bottom: 0px;
	right: 0px;
	text-align: right;
}
.hero-content h1{
	font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 9px;
	font-weight: 100;
}
@keyframes kenburns {
    0% { 
        transform: scale(1.15) translateY(0) translateX(0); 
    }
    100% { 
        transform: scale(1.15) translateY(30px) translateX(-10px); 
    }
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

.about-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    color: #000;
    margin-bottom: 40px;
    text-transform: lowercase;
}

.about-text {
    margin-bottom: 50px;
}

.about-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.about-stats {
    display: flex;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    font-size: 48px;
    color: #000;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: lowercase;
    letter-spacing: 1px;
}

/* Contacts Page Styles */
.contacts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

.contacts-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    color: #000;
    margin-bottom: 40px;
    text-transform: lowercase;
}

.contacts-info {
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.contact-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-value {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #666;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #000;
}

/* Contact Form */
.contact-form-section {
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.form-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin-bottom: 30px;
    text-transform: lowercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 0;
    font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-bottom-color: #000;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
    text-transform: lowercase;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    align-self: flex-start;
    padding: 15px 40px;
    font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    background: #000;
    border: none;
    cursor: pointer;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.form-button:hover {
    background: #333;
}

/* Project Title */
.project-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    margin-top: 15px;
    margin-bottom: 0;
    #text-transform: lowercase;
    text-align: left;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    opacity: 0.8;
}

.project-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
		max-width: 97%; 
    }
	body {
	max-width: 95%; 
	}
    
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .image-container,
    .gallery-container {
        padding: 0px 20px 20px;
    }
	.about-container,
    .contacts-container {
        padding: 30px 20px 20px;
    }
    
    .nav-mobile {
        padding: 20px;
    }
    
    body.menu-open .main-content,
    body.menu-open .projects-main,
    body.menu-open .about-main,
    body.menu-open .contacts-main {
        padding-top: 250px;
    }
    
    .about-title,
    .contacts-title {
        font-size: 28px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}