/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
header {
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo h1:after {
    display: none;
}

.logo p {
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    transition: color 0.2s;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid;
    transition: border-color 0.3s ease;
}

section:last-child {
    border-bottom: none;
}

/* ===== ABOUT BLOCK ===== */
.about-hero {
    padding: 4rem 0;
    transition: background 0.3s ease;
}

.about-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text h2:after {
    bottom: -8px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.highlight {
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-stats {
    flex: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 100px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-outline {
    display: inline-block;
    background: transparent;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 1rem;
    cursor: pointer;
    border: 1.5px solid;
}

.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

/* ===== CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.material-card {
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-2px);
}

.material-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: background 0.3s ease;
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.material {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contacts-section {
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contacts-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.contacts-flex {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.contact-item {
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    transition: all 0.2s;
}

.contact-item:hover a {
    color: #fff;
}

.scan-block {
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.scan-text {
    flex: 2;
}

.scan-icon {
    flex: 1;
    text-align: center;
    font-size: 3rem;
}

.photopolymer {
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 0.9rem;
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.theme-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.theme-dot:hover {
    transform: scale(1.1);
}

.theme-dot.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* ===== ТЕМА 1: СВЕТЛЫЙ МАТОВЫЙ (по умолчанию) ===== */
body.theme-matte {
    background-color: #f5f7fa;
    color: #1a2a3a;
}

body.theme-matte header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-matte .logo p,
body.theme-matte nav a {
    color: #4a5a6a;
}

body.theme-matte nav a:hover {
    color: #2d7aff;
}

body.theme-matte h2:after {
    background: #2d7aff;
}

body.theme-matte .about-hero {
    background: linear-gradient(135deg, #f0f4f9 0%, #ffffff 100%);
}

body.theme-matte .about-text p {
    color: #3a4a5a;
}

body.theme-matte .highlight {
    color: #2d7aff;
}

body.theme-matte .stat-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

body.theme-matte .stat-number {
    color: #2d7aff;
}

body.theme-matte .stat-label {
    color: #6c7a8a;
}

body.theme-matte .btn-outline {
    border-color: #2d7aff;
    color: #2d7aff;
}

body.theme-matte .btn-outline:hover {
    background: #2d7aff;
    color: #fff;
}

body.theme-matte .service-card,
body.theme-matte .material-card,
body.theme-matte .project-card,
body.theme-matte .product-card,
body.theme-matte .scan-block,
body.theme-matte .faq-item {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

body.theme-matte .service-card:hover,
body.theme-matte .project-card:hover,
body.theme-matte .product-card:hover {
    border-color: #2d7aff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

body.theme-matte .project-img {
    background: #f0f4f9;
}

body.theme-matte .tag {
    background: #eef2f6;
    color: #4a5a6a;
}

body.theme-matte .material {
    color: #2d7aff;
}

body.theme-matte .contacts-section {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

body.theme-matte .contact-item {
    background: #f5f7fa;
    border: 1px solid #e8ecf0;
}

body.theme-matte .contact-item:hover {
    background: #2d7aff;
}

body.theme-matte .photopolymer {
    background: linear-gradient(135deg, #f0f4f9 0%, #ffffff 100%);
    border: 1px solid #e8ecf0;
}

body.theme-matte section {
    border-color: #e8ecf0;
}

body.theme-matte footer {
    background: #ffffff;
    border-top: 1px solid #e8ecf0;
    color: #6c7a8a;
}

/* ===== ТЕМА 2: ТЕМНАЯ ===== */
body.theme-dark {
    background-color: #0a0e12;
    color: #e0e4e8;
}

body.theme-dark header {
    background: #0f141a;
    border-bottom: 1px solid #1e2a3a;
    box-shadow: none;
}

body.theme-dark .logo p,
body.theme-dark nav a {
    color: #8a9aaa;
}

body.theme-dark nav a:hover {
    color: #3b82f6;
}

body.theme-dark h2:after {
    background: #3b82f6;
}

body.theme-dark .about-hero {
    background: linear-gradient(135deg, #0f141a 0%, #0a0e12 100%);
}

body.theme-dark .about-text p {
    color: #b0b8c0;
}

body.theme-dark .highlight {
    color: #3b82f6;
}

body.theme-dark .stat-card {
    background: #141a22;
    border: 1px solid #1e2a3a;
    box-shadow: none;
}

body.theme-dark .stat-number {
    color: #3b82f6;
}

body.theme-dark .stat-label {
    color: #8a9aaa;
}

body.theme-dark .btn-outline {
    border-color: #3b82f6;
    color: #3b82f6;
}

body.theme-dark .btn-outline:hover {
    background: #3b82f6;
    color: #fff;
}

body.theme-dark .service-card,
body.theme-dark .material-card,
body.theme-dark .project-card,
body.theme-dark .product-card,
body.theme-dark .scan-block,
body.theme-dark .faq-item {
    background: #141a22;
    border: 1px solid #1e2a3a;
    box-shadow: none;
}

body.theme-dark .service-card:hover,
body.theme-dark .project-card:hover,
body.theme-dark .product-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.theme-dark .project-img {
    background: #1a222c;
}

body.theme-dark .tag {
    background: #1a222c;
    color: #8a9aaa;
}

body.theme-dark .material {
    color: #3b82f6;
}

body.theme-dark .contacts-section {
    background: #0f141a;
    border: 1px solid #1e2a3a;
}

body.theme-dark .contact-item {
    background: #141a22;
    border: 1px solid #1e2a3a;
}

body.theme-dark .contact-item:hover {
    background: #3b82f6;
}

body.theme-dark .photopolymer {
    background: #0d1220;
    border: 1px solid #3b82f6;
}

body.theme-dark section {
    border-color: #1e2a3a;
}

body.theme-dark footer {
    background: #0f141a;
    border-top: 1px solid #1e2a3a;
    color: #6a7a8a;
}

/* ===== ТЕМА 3: ЭЛИТНЫЙ ГЛЯНЕЦ ===== */
body.theme-glossy {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
}

body.theme-glossy header {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.theme-glossy .logo p,
body.theme-glossy nav a {
    color: #c0c0c0;
}

body.theme-glossy nav a:hover {
    color: #ffd700;
}

body.theme-glossy h2:after {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

body.theme-glossy .about-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
}

body.theme-glossy .about-text p {
    color: #d0d0d0;
}

body.theme-glossy .highlight {
    color: #ffd700;
}

body.theme-glossy .stat-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

body.theme-glossy .stat-number {
    color: #ffd700;
}

body.theme-glossy .stat-label {
    color: #c0c0c0;
}

body.theme-glossy .btn-outline {
    border-color: #ffd700;
    color: #ffd700;
}

body.theme-glossy .btn-outline:hover {
    background: #ffd700;
    color: #1a1a2e;
}

body.theme-glossy .service-card,
body.theme-glossy .material-card,
body.theme-glossy .project-card,
body.theme-glossy .product-card,
body.theme-glossy .scan-block,
body.theme-glossy .faq-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

body.theme-glossy .service-card:hover,
body.theme-glossy .project-card:hover,
body.theme-glossy .product-card:hover {
    border-color: #ffd700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

body.theme-glossy .project-img {
    background: rgba(255,255,255,0.03);
}

body.theme-glossy .tag {
    background: rgba(255,215,0,0.15);
    color: #ffd700;
}

body.theme-glossy .material {
    color: #ffd700;
}

body.theme-glossy .contacts-section {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

body.theme-glossy .contact-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

body.theme-glossy .contact-item:hover {
    background: #ffd700;
}

body.theme-glossy .contact-item:hover a {
    color: #1a1a2e;
}

body.theme-glossy .photopolymer {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,140,0,0.05));
    border: 1px solid rgba(255,215,0,0.3);
}

body.theme-glossy section {
    border-color: rgba(255,255,255,0.05);
}

body.theme-glossy footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #a0a0a0;
}

/* ===== ТЕМА 4: СИНЯЯ (Deep Blue) ===== */
body.theme-blue {
    background-color: #0a192f;
    color: #e6f1ff;
}

body.theme-blue header {
    background: #0c1e35;
    border-bottom: 1px solid #1d3a5c;
}

body.theme-blue .logo p,
body.theme-blue nav a {
    color: #a8c8e8;
}

body.theme-blue nav a:hover {
    color: #64ffda;
}

body.theme-blue h2:after {
    background: #64ffda;
}

body.theme-blue .about-hero {
    background: linear-gradient(135deg, #0c1e35 0%, #0a192f 100%);
}

body.theme-blue .about-text p {
    color: #c0d8f0;
}

body.theme-blue .highlight {
    color: #64ffda;
}

body.theme-blue .stat-card {
    background: #0c1e35;
    border: 1px solid #1d3a5c;
}

body.theme-blue .stat-number {
    color: #64ffda;
}

body.theme-blue .stat-label {
    color: #8ab0d0;
}

body.theme-blue .btn-outline {
    border-color: #64ffda;
    color: #64ffda;
}

body.theme-blue .btn-outline:hover {
    background: #64ffda;
    color: #0a192f;
}

body.theme-blue .service-card,
body.theme-blue .material-card,
body.theme-blue .project-card,
body.theme-blue .product-card,
body.theme-blue .scan-block,
body.theme-blue .faq-item {
    background: #0c1e35;
    border: 1px solid #1d3a5c;
}

body.theme-blue .service-card:hover,
body.theme-blue .project-card:hover,
body.theme-blue .product-card:hover {
    border-color: #64ffda;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

body.theme-blue .project-img {
    background: #0a192f;
}

body.theme-blue .tag {
    background: #1d3a5c;
    color: #a8c8e8;
}

body.theme-blue .material {
    color: #64ffda;
}

body.theme-blue .contacts-section {
    background: #0c1e35;
    border: 1px solid #1d3a5c;
}

body.theme-blue .contact-item {
    background: #0a192f;
    border: 1px solid #1d3a5c;
}

body.theme-blue .contact-item:hover {
    background: #64ffda;
}

body.theme-blue .contact-item:hover a {
    color: #0a192f;
}

body.theme-blue .photopolymer {
    background: linear-gradient(135deg, #0c1e35, #0a192f);
    border: 1px solid #64ffda;
}

body.theme-blue section {
    border-color: #1d3a5c;
}

body.theme-blue footer {
    background: #0c1e35;
    border-top: 1px solid #1d3a5c;
    color: #7a9aba;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .header-container { flex-direction: column; text-align: center; }
    nav { justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
    .container { padding: 0 1rem; }
    section { padding: 2.5rem 0; }
    .about-grid { flex-direction: column; }
    .about-stats { justify-content: center; }
    .contacts-section { padding: 2rem 1rem; }
    .theme-switcher { bottom: 15px; right: 15px; padding: 6px 12px; gap: 8px; }
    .theme-dot { width: 28px; height: 28px; }
}
