/* ==========================================================================
   Цветовая палитра (переменные)
   ========================================================================== */
:root {
    --nz-green: #2D5A27;      /* Тёмно-зелёный */
    --nz-green-dark: #1e3d1a; /* Ещё темнее */
    --nz-jade: #00A896;       /* Бирюзовый */
    --nz-moss: #8CB369;       /* Светло-зелёный */
    --nz-mist: #E8F1E4;       /* Мятный фон */
    --steel-dark: #1A1A1A;    /* Тёмно-серый */
    --steel-light: #F5F5F0;   /* Светло-серый */
    --accent-gold: #D4A84B;   /* Золотой акцент */
    --text-dark: #2C2C2C;     /* Основной текст */
}

/* ==========================================================================
   Базовые стили (Reset & Base)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nut-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 16px;
    animation: fall 2s ease-in forwards;
}

@keyframes fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateY(300px) rotate(720deg) scale(0.5); }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--steel-light);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   Навигация (Navbar)
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .4s ease;
    max-width: 1200px;
    margin: 0 auto;
}

nav.scrolled {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--steel-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links .lang-switch {
    background: none;
    border: 1px solid var(--steel-dark);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all .3s;
}

.nav-links .lang-switch:hover {
    background: var(--steel-dark);
    color: white;
}

.nav-links a {
    text-decoration: none;
    color: var(--steel-dark);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    transition: color .3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nz-jade);
    transition: width .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 1002;
}

.dropbtn {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 500;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 5px 0;
}

.dropdown-content a {
    color: var(--steel-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: .9rem;
    transition: background .2s;
}

.dropdown-content a:hover {
    background: var(--nz-mist);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Мобильное меню (гамбургер) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--steel-dark);
    transition: all .3s;
}

/* ==========================================================================
   Главный экран (Hero)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--nz-mist) 0%, #fff 100%);
}

/* Декоративные холмы */
.hills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hill {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.hills {
    transition: transform 0.1s ease-out;
}
.hill-1 { opacity: .6; }
.hill-2 { opacity: .7; }
.hill-3 { opacity: .5; }

/* Барашек следует за курсором */
.cursor-sheep {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}



/* Туман */
.mist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(232, 241, 228, .4) 100%);
    pointer-events: none;
}

/* Контент героя */
.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--steel-dark);
    margin-bottom: .5rem;
    opacity: 0;
    animation: slideUp 1s ease forwards .3s;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--nz-green);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease forwards .5s;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Декоративный станок */
.lathe-part {
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    position: relative;
    opacity: 0;
    animation: slideUp 1s ease forwards .7s;
}

.cylinder {
    width: 340px;
    height: 180px;
    background: linear-gradient(135deg, #666 0%, #333 50%, #666 100%);
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate3d 4s linear infinite;
    box-shadow: inset 0 0 30px rgba(0, 168, 150, .3), 0 10px 30px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.cylinder img {
    max-width: 90%;
    max-height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.cylinder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 3px solid var(--nz-jade);
    animation: glow 2s ease-in-out infinite;
}

.cylinder::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 12px;
    border: 2px dashed var(--accent-gold);
}

@keyframes rotate3d {
    from { transform: translate(-50%, -50%) rotateY(0deg); }
    to { transform: translate(-50%, -50%) rotateY(360deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px var(--nz-jade); }
    50% { box-shadow: 0 0 30px var(--nz-jade), 0 0 50px var(--nz-jade); }
}

/* Кнопка */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--nz-jade) 0%, var(--nz-green) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .3s ease;
    opacity: 0;
    animation: slideUp 1s ease forwards .9s;
    box-shadow: 0 4px 15px rgba(0, 168, 150, .3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 150, .5);
}

/* ==========================================================================
   Общие стили секций
   ========================================================================== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--steel-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--nz-jade), var(--nz-moss));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Секция "Обо мне" (About)
   ========================================================================== */
.about {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease;
}

.about.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    width: auto;
    min-width: 140px;
    padding: 0.9rem 2rem;
    background-color: var(--nz-green);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
    transition: all 0.3s ease;
}

.about-btn:hover {
    background-color: var(--nz-green-dark);
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-photo {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--nz-mist), var(--nz-moss));
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    border-radius: 20px;
}

.about-photo svg {
    width: 60%;
    height: 60%;
    opacity: .5;
}



.about-text h3 {
    font-size: 1.8rem;
    color: var(--nz-green);
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

/* Статистика */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    color: var(--nz-jade);
    font-weight: bold;
}

.stat-label {
    font-size: .9rem;
    color: #888;
}

/* ==========================================================================
   Секция "Станки" (Equipment)
   ========================================================================== */
.equipment {
    background: var(--steel-dark);
    color: white;
    border-radius: 30px;
    margin: 4rem auto;
    max-width: 1200px;
}

.equipment .section-title {
    color: white;
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem 4rem;
}

.machine-card {
    background: rgba(255, 255, 255, .05);
    border-radius: 20px;
    padding: 2rem;
    transition: all .4s ease;
    border: 1px solid rgba(255, 255, 255, .1);
    opacity: 0;
    transform: translateY(20px);
}

.machine-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.machine-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.machine-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--nz-jade), var(--nz-green));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.machine-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.machine-card h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: .5rem;
    color: var(--accent-gold);
}

.machine-card .type {
    font-size: .9rem;
    color: var(--nz-moss);
    margin-bottom: 1rem;
}

.machine-specs {
    font-size: .85rem;
    color: #aaa;
    line-height: 1.6;
}

/* ==========================================================================
   Секция "Навыки" (Skills)
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card, .skill-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .05);
    transition: all .4s ease;
    opacity: 0;
    transform: scale(.9);
}

.service-card.visible, .skill-card.visible {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover, .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 150, .15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--nz-mist), var(--nz-moss));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--nz-green);
}

.service-card h4, .skill-card h4 {
    font-size: 1.3rem;
    color: var(--steel-dark);
    margin-bottom: 1rem;
}

.service-card p, .skill-card p {
    color: #666;
    font-size: .95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Секция "Опыт работы" (Articles/Work Experience)
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .05);
    transition: all .4s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.article-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .1);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--nz-jade), var(--nz-green));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.article-tooltip {
    position: fixed;
    display: none;
    background: rgba(0, 0, 0, .85);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10000;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image svg {
    width: 60px;
    height: 60px;
    fill: white;
    opacity: .5;
}

.article-content {
    padding: 1.5rem;
}

.article-date {
    font-family: 'Space Mono', monospace;
    font-size: .8rem;
    color: var(--nz-jade);
    margin-bottom: .5rem;
}

.article-card h4 {
    font-size: 1.2rem;
    color: var(--steel-dark);
    margin-bottom: .5rem;
}

.article-card p {
    color: #666;
    font-size: .9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Секция "Галерея" (Gallery)
   ========================================================================== */
.gallery {
    background: linear-gradient(135deg, var(--nz-mist) 0%, white 100%);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1200px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-start;
}

.gallery-item {
    background: linear-gradient(135deg, var(--nz-moss), var(--nz-green));
    border-radius: 15px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(.8);
    transition: all .5s ease;
    max-height: 100px;
    cursor: pointer;
    vertical-align: top;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    display: block;
    max-height: 100px;
    width: auto;
    height: auto;
}

/* Лайтбокс (модальное окно просмотра) */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

#lightbox .lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Модальное окно для статей */
#about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    padding: 2rem;
}

#about-modal .modal-content {
    background: var(--steel-light);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    cursor: default;
}

#about-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
}

#about-modal .modal-close:hover {
    color: #333;
}

.about-modal-body {
    padding: 2rem;
}

.about-modal-body h2 {
    font-size: 1.6rem;
    color: var(--nz-green);
    margin-bottom: 1.5rem;
}

.about-modal-section {
    margin-bottom: 2rem;
}

.about-modal-section h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--nz-green);
}

.about-modal-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-modal-text br {
    display: block;
    content: "";
    margin: 0.4rem 0;
}

.about-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 0.8rem;
}

.about-modal-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-modal-gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Lightbox for about-modal images */
#about-modal-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    cursor: pointer;
}

#about-modal-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#about-modal-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    padding: 2rem;
}

#article-modal .modal-content {
    background: var(--steel-light);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    cursor: default;
}

#article-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
}

.article-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.article-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.article-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-modal-date {
    color: var(--nz-jade);
    font-weight: 600;
    font-size: 0.9rem;
}

.article-modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.article-modal-description {
    color: var(--text-dark);
    line-height: 1.7;
    white-space: pre-line;
}

/* Модальное окно для навыков */
#skill-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    padding: 2rem;
}

#skill-modal .modal-content {
    background: var(--steel-light);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    cursor: default;
}

#skill-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
}

.skill-modal-image {
    display: none;
    width: 100%;
    padding: 1.5rem 2rem 0;
}

.skill-modal-image img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.skill-modal-image img + img {
    margin-top: 1rem;
}

.skill-modal-body {
    padding: 1.5rem 2rem 2rem;
}

.skill-modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.skill-modal-description {
    color: var(--text-dark);
    line-height: 1.8;
    white-space: pre-line;
}

/* Модальное окно для станков */
#machine-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    padding: 2rem;
}

#machine-modal .modal-content {
    background: var(--steel-dark);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    cursor: default;
}

#machine-modal .modal-content::-webkit-scrollbar {
    width: 0;
}

#machine-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.machine-modal-image {
    display: none;
    width: 100%;
    padding: 1rem 2rem 0;
}

.machine-modal-image .machine-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
}

.machine-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem 2rem;
}

.machine-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.machine-modal-title {
    font-size: 1.6rem;
    color: var(--accent-gold);
    font-family: 'Space Mono', monospace;
}

.machine-modal-type {
    font-size: 1rem;
    color: var(--nz-moss);
}

.machine-modal-specs {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    white-space: pre-line;
}

.machine-modal-description {
    color: white;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .article-modal-body {
        grid-template-columns: 1fr;
    }
    
    .article-modal-image {
        height: 200px;
    }
    
    .machine-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .machine-modal-image .machine-image {
        max-height: 250px;
    }
}

/* ==========================================================================
   Секция "Контакты" (Contact)
   ========================================================================== */
.contact {
    background: var(--steel-dark);
    color: white;
    border-radius: 30px;
    margin: 4rem auto;
    max-width: 1200px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    fill: var(--nz-jade);
}

.contact-item span {
    font-size: 1.1rem;
}

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all .3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, .5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 0 0 2px var(--nz-jade);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    opacity: 1;
    animation: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ==========================================================================
   Подвал (Footer)
   ========================================================================== */
footer {
    background: var(--steel-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.social-links a:hover {
    background: var(--nz-jade);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.copyright {
    font-size: .9rem;
    color: #888;
}

/* ==========================================================================
   Адаптив (Media Queries)
   ========================================================================== */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .about-photo {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .stats {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 1rem;
    }
    
    .equipment {
        border-radius: 20px;
    }
    
    .machines-grid {
        padding: 0 1rem 2rem;
    }
}