/*
Theme Name: 3D Print Portfolio
Theme URI: https://www.ownmaster.ru/
Author: OwnMaster
Author URI: https://www.ownmaster.ru/
Description: Современная минималистичная тема для портфолио услуг 3D-печати. Адаптивный дизайн, защита от спама, готовые блоки для контента.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 3d-print-portfolio
*/

/* ===== ВЕСЬ ВАШ CSS ===== */
:root {
    --primary: #2b6c8c;
    --primary-dark: #1f4b61;
    --secondary: #6a9bb8;
    --bg-light: #f9fafc;
    --bg-white: #ffffff;
    --text-dark: #1e1e2a;
    --text-muted: #2f4050;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --radius: 28px;
    --transition: 0.25s ease;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #1e1e2a, #3a3a4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo i {
    margin-right: 8px;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    font-weight: 450;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-links a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary-dark);
}

.nav-links a i {
    margin-right: 6px;
    font-size: 0.9rem;
    color: #3f6b80;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
    background: none;
    border: none;
    padding: 4px 8px;
}

/* Секции */
section, .page-content {
    padding: 100px 0 80px;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 550;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.section-title i {
    margin-right: 12px;
    color: var(--primary);
    opacity: 0.7;
}

/* Главная */
#home, .home-page {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(160deg, #f9fafc 0%, #edf2f7 100%);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 320px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.btn i {
    margin-right: 10px;
}

.btn:hover {
    background: #2b3a4a;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(30, 30, 42, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
    margin-left: 12px;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.hero-visual {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    filter: drop-shadow(0 12px 20px rgba(43, 108, 140, 0.08));
}

/* Обо мне */
.about-content {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: stretch;
}

.about-text {
    flex: 2 1 380px;
}

.about-text p {
    font-size: 1.05rem;
    color: #2a3744;
    margin-bottom: 18px;
    max-width: 760px;
}

.about-text .highlight {
    display: inline-block;
    background: #ecf3f9;
    padding: 2px 12px;
    border-radius: 40px;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #eef4fa;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    float: left;
    margin-right: 24px;
}

.equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 24px 0 20px;
    padding: 0;
    list-style: none;
    clear: both;
}

.equipment-list li {
    background: #f1f5f9;
    padding: 6px 18px 6px 14px;
    border-radius: 40px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e3eaf2;
}

.equipment-list li i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
}

.about-stats {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #f2f5f9;
    padding: 32px 28px;
    border-radius: var(--radius);
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item i {
    font-size: 2rem;
    width: 48px;
    color: var(--primary);
    opacity: 0.7;
}

.stat-item div {
    font-weight: 500;
}

.stat-item small {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: #4b5d6e;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.gallery-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border-color: rgba(43, 108, 140, 0.08);
}

.gallery-thumb {
    height: 220px;
    overflow: hidden;
    background: #e3eaf2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.03);
}

.gallery-thumb .fallback-icon {
    font-size: 4.5rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

.gallery-card .card-body {
    padding: 20px 22px 24px;
}

.gallery-card h4 {
    font-weight: 550;
    margin-bottom: 4px;
}

.gallery-card p {
    color: #3d5266;
    font-size: 0.95rem;
}

.gallery-card .badge {
    display: inline-block;
    background: #e4ebf3;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f3b4a;
    margin-top: 10px;
}

/* Контакты */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-info {
    flex: 1 1 240px;
}

.contact-info h3 {
    font-weight: 550;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: 0.1s;
}

.contact-item a:hover {
    border-bottom-color: var(--primary);
}

.contact-form {
    flex: 2 1 340px;
    background: #f5f8fc;
    padding: 32px 30px;
    border-radius: 32px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 60px;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.15s;
    outline: none;
}

.contact-form textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(43, 108, 140, 0.06);
}

.contact-form .btn {
    border-radius: 60px;
    width: 100%;
    text-align: center;
    background: var(--text-dark);
}

.contact-form .btn:hover {
    background: #2b3a4a;
}

/* Форма безопасности */
.form-notification {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

.form-notification.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.captcha-container label {
    font-weight: 500;
    color: var(--text-dark);
}

.captcha-container input {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 60px;
    text-align: center;
    font-size: 1rem;
    outline: none;
}

.captcha-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(43, 108, 140, 0.06);
}

.captcha-hint {
    font-size: 0.9rem;
    color: #4b5d6e;
}

.honeypot-field {
    display: none !important;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f0fe;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-top: 12px;
}

.security-badge i {
    color: var(--primary);
}

/* Подвал */
footer {
    padding: 32px 0;
    background: #f9fafc;
    border-top: 1px solid rgba(0,0,0,0.02);
    text-align: center;
    color: #4d6278;
    font-size: 0.95rem;
}

footer i {
    color: var(--primary);
    margin: 0 6px;
}

/* Адаптивность */
@media (max-width: 820px) {
    .hero-text h1 {
        font-size: 2.6rem;
    }
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 18px 0 6px;
        border-top: 1px solid rgba(0,0,0,0.04);
        margin-top: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-grid {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    .section-title {
        text-align: center;
        width: 100%;
    }

    .about-content {
        flex-direction: column;
    }
    .about-stats {
        width: 100%;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }

    .about-avatar {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    section, .page-content {
        padding: 80px 0 60px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .equipment-list li {
        font-size: 0.85rem;
        padding: 4px 14px 4px 10px;
    }
}