/*
Theme Name: Mortimer3D
Theme URI: https://mortimer3d.ru
Author: Mortimer3D
Description: Современная тема для 3D печатника в сине-зеленых тонах. Адаптив, форма заявки в комментарии.
Version: 2.0
License: GPL v2 or later
Text Domain: mortimer3d
*/

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f4f9fc;
    color: #1e2a3a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

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

/* градиентные акценты */
:root {
    --primary: #0f766e;
    --primary-dark: #0d5c54;
    --primary-light: #14b8a6;
    --secondary: #2dd4bf;
    --accent: #0d9488;
    --bg-light: #e6f7f5;
    --text-dark: #0f172a;
    --text-gray: #334155;
    --white: #ffffff;
    --shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.1);
}

/* шапка */
.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--primary-light);
}

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

.logo a {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #2dd4bf);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo span {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* герой */
.hero {
    background: linear-gradient(145deg, #0f172a 0%, #115e59 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(45,212,191,0.15) 0%, rgba(0,0,0,0) 70%);
    transform: rotate(25deg);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero h1 span {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: linear-gradient(95deg, #0d9488, #14b8a6);
    color: white;
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(13,148,136,0.3);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -8px rgba(13,148,136,0.5);
    background: linear-gradient(95deg, #0b6e64, #0d9488);
}

/* общие секции */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    margin: 1rem auto 0;
    border-radius: 4px;
}

/* карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(13,148,136,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 60px;
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

/* преимущества */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border-bottom: 3px solid transparent;
}

.feature:hover {
    border-bottom-color: var(--primary);
    transform: scale(1.02);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 12px 22px -12px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* форма */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13,148,136,0.2);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
    background: #fefefe;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.2);
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* подвал */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #134e4a;
}

.site-footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* адаптив */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .btn {
        padding: 10px 26px;
    }
}