/* ============================================
   Greatphar Website Styles
   Font: Times New Roman
   Language: Russian
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --bg-dark: #0a0a0a;
    --bg-section: #0f0f0f;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-gray: #888888;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(0, 255, 136, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-light {
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn-light:hover {
    background: var(--primary);
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-white);
}

.section-desc {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 24px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 200, 100, 0.05) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-unit {
    font-size: 18px;
    color: var(--primary);
    margin-top: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Philosophy Section */
.philosophy {
    padding: 100px 0;
    background: var(--bg-section);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.philosophy-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.philosophy-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 200, 100, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-icon svg {
    width: 40px;
    height: 40px;
}

.philosophy-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-white);
}

.philosophy-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--bg-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.1);
}

.product-card.featured {
    border-color: var(--border-light);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
    font-size: 12px;
    border-radius: 20px;
    z-index: 10;
}

.product-badge.featured {
    background: var(--primary);
    color: var(--bg-dark);
}

.product-image {
    height: 320px;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.product-info {
    padding: 32px;
}

.product-name {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-white);
}

.product-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.product-specs-preview {
    margin-bottom: 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-name {
    font-size: 14px;
    color: var(--text-gray);
}

.spec-value {
    font-size: 14px;
    color: var(--text-white);
    font-weight: 600;
}

.spec-value.highlight {
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Specs Section */
.specs {
    padding: 100px 0;
    background: var(--bg-section);
}

.specs-block {
    margin-bottom: 60px;
}

.specs-block:last-child {
    margin-bottom: 0;
}

.specs-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.specs-header h3 {
    font-size: 28px;
    color: var(--text-white);
}

.specs-model {
    font-size: 14px;
    color: var(--text-muted);
}

.specs-table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 16px 24px;
    font-size: 15px;
}

.specs-table td:first-child {
    color: var(--text-gray);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-white);
    font-weight: 500;
}

/* Applications Section */
.applications {
    padding: 100px 0;
    background: var(--bg-dark);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.app-card {
    text-align: center;
}

.app-image {
    height: 200px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-white);
}

.app-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-dark));
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.cta-content p {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 16px;
    color: var(--text-white);
}

.contact-value:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 60px 0 24px;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-white);
}

.modal-product {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.modal-product span {
    color: var(--primary);
    font-weight: 600;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .philosophy-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-contact {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .modal-content {
        padding: 24px;
    }
}
