* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, serif;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #ffc400;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffc400;
    color: #000000;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ffc400;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #ffc400;
    color: #ffc400;
}

.btn-secondary:hover {
    background-color: #ffc400;
    color: #fff;
}

.center {
    text-align: center;
    margin-top: 30px;
}

/* Шапка сайта */
header {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffc400;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffc400;
    bottom: 0;
    left: 0;
}

/* Главная секция (герой) */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('NDMechaArt1.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Секция с избранными работами */
.featured-works {
    padding: 80px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.work-item h3 {
    font-size: 1.5rem;
    margin: 15px 20px 10px;
}

.work-item p {
    color: #777;
    margin: 0 20px 20px;
}

/* Подвал */
footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-info p {
    color: #aaa;
}

.social-links a {
    display: inline-block;
    margin-left: 15px;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Страница "Работы" */
.page-header {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: #777;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.filter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background-color: transparent;
    border: 2px solid #ffc400;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #ffc400;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.item-overlay p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.view-details {
    display: inline-block;
    color: #fff;
    background-color: #ffc400;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.view-details:hover {
    background-color: #ffc400;
}

.works-gallery {
    padding: 60px 0 80px;
}

/* Страница "Обо мне" */
.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
    align-items: start;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.about-text{
    margin: auto;
    padding: auto;
}

.about-text h3 {
    margin: auto;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: auto;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

.testimonials {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 30px;
}

.testimonial-item blockquote {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding: 0 30px;
}

.testimonial-item blockquote::before,
.testimonial-item blockquote::after {
    content: '"';
    font-size: 3rem;
    color: #ffc400;
    opacity: 0.3;
    position: absolute;
}

.testimonial-item blockquote::before {
    top: -20px;
    left: 0;
}

.testimonial-item blockquote::after {
    bottom: -40px;
    right: 0;
}

.testimonial-item cite {
    font-style: normal;
    font-weight: 500;
    color: #333;
}

/* Страница "Контакты" */
.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item i {
    color: #ffc400;
    font-size: 1.5rem;
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.info-item p {
    color: #555;
}

.info-item a:hover {
    color: #ffc400;
}

.contact-social h4 {
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ffc400;
    color: #fff;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Verdana, sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffc400;
    outline: none;
}

.map-section {
    padding: 0 0 80px;
}

.map-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background-color: #f1f1f1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 1.2rem;
}

#model-viewer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

#model-container-all {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    z-index: 100;
}

.auth-form {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.auth-form input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: #4285F4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.auth-form button:hover {
  background: #3367D6;
}

.auth-form a {
  color: #4285F4;
  text-decoration: none;
  cursor: pointer;
}

.auth-form a:hover {
  text-decoration: underline;
}

#user-info {
  text-align: center;
  margin: 20px auto;
  max-width: 400px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    .contact-grid {
        grid-template-columns: 3fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 500px;
        max-height: auto;
        margin: 0, auto;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-bottom: 20px;
    }
    
    .social-links {
        margin-bottom: 20px;
    }
    
    .social-links a {
        margin: 0 10px;
    }
    #model-container {
        position: absolute;
        width: 30%;
        height: 70%;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 450px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 200px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        width: 100%;
        margin: 0 auto;
    }
    
    .about-text {
        margin-top: 400px;
        padding: 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .works-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .about-text h3,
    .contact-info h3,
    .contact-form h3,
    .map-section h3 {
        font-size: 1.8rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        margin-bottom: 10px;
    }

    #model-container {
        position: absolute;
        vertical-align: auto;
        right: 0%;
        left: 0%;
        width: 80%;
        height: 500px;
        border-radius: 20px;
    }
}