/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #111111;
    --color-bg-elevated: #181818;
    --color-bg-card: #1e1e1e;
    --color-primary: #5A9A4A;
    --color-text: #FFFFFF;
    --color-text-secondary: #E8E8E8;
    --color-accent: #6CB05C;
    --color-border: rgba(90, 154, 74, 0.3);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(90, 154, 74, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(90, 154, 74, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(90, 154, 74, 0.015) 50px, rgba(90, 154, 74, 0.015) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(90, 154, 74, 0.015) 50px, rgba(90, 154, 74, 0.015) 51px),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235A9A4A' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--color-text);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Screen Layout */
.screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

#hero {
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    color: var(--color-primary);
}

h3 {
    font-size: 1.4rem;
    color: var(--color-text);
}

p {
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.4;
}

ul {
    list-style-position: inside;
    color: var(--color-text-secondary);
}

ul li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.tagline {
    max-width: 700px;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    padding: 0 10px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s var(--transition-smooth);
    text-align: center;
}

.nav-link:hover {
    border-bottom-color: var(--color-primary);
}

.scroll-down {
    color: var(--color-primary);
    cursor: pointer;
}

/* About Section */
#about .content {
    max-width: 900px;
    margin: 0 auto;
}

.telegram-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
    width: fit-content;
    text-align: center;
}

.telegram-btn:hover {
    background: var(--color-accent);
}

/* Equipment Section */
.equipment-content {
    display: grid;
    gap: 2rem;
}

.equipment-category {
    margin-bottom: 2.5rem;
}

.equipment-category:last-child {
    margin-bottom: 0;
}

.equipment-category h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.equipment-category ul {
    padding-left: 1.5rem;
}

.equipment-category ul ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.equipment-category .category-intro {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-style: italic;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-primary);
}

.equipment-item {
    background: var(--color-bg-card);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(90, 154, 74, 0.15);
    transition: border-color 0.3s ease;
}

.equipment-item:hover {
    border-color: var(--color-border);
}

.equipment-item:last-child {
    margin-bottom: 0;
}

.equipment-item h3 {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.equipment-item p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.equipment-item p:last-child {
    margin-bottom: 0;
}

.equipment-item a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.equipment-item a:hover {
    color: var(--color-primary);
}

.equipment-item ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.equipment-item li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.equipment-specs {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(90, 154, 74, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border-left: 3px solid var(--color-primary);
}

.equipment-specs p {
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.equipment-specs p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

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

/* Location Section */
.location-info {
    margin-bottom: 2rem;
}

.location-info p {
    margin-bottom: 0.5rem;
}

.location-info .label {
    color: var(--color-primary);
}

.location-info a {
    color: var(--color-accent);
}

.map-placeholder {
    background-color: rgba(45, 73, 31, 0.1);
    border: 2px dashed var(--color-primary);
    padding: 4rem;
    text-align: center;
    border-radius: 8px;
    color: var(--color-text-secondary);
}

/* Pricing Section */
.pricing-category {
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    transition: all 0.3s var(--transition-smooth);
}

.pricing-category:hover {
    background-color: rgba(45, 73, 31, 0.1);
    transform: translateY(-5px);
}

.pricing-category h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.pricing-category p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.price-list {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(90, 154, 74, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

.price-list p {
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-list p:last-child {
    margin-bottom: 0;
}

.price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Order Section */
.contact-form-placeholder {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
}

.contact-form-placeholder ul {
    list-style: none;
    padding-left: 0;
}

/* Production Section */
.production-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(45, 73, 31, 0.3);
}

.product-image-placeholder {
    background-color: rgba(45, 73, 31, 0.1);
    border: 2px dashed var(--color-primary);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: var(--color-text-secondary);
}

.product-image {
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--transition-smooth);
}

.product-card-link {
    display: block;
    text-decoration: none;
}

.product-card > .product-card-link {
    margin-bottom: 1rem;
}

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

.product-more {
    display: block;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.product-card-link:hover .product-more {
    color: var(--color-accent);
}

.product-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-link {
    padding: 0.5rem 0.4rem;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
    flex: 1 1 0;
}

.product-link:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
}

/* Marketplace Buttons */
.btn-wb,
.btn-ozon,
.btn-shop {
    border: none;
    color: #ffffff;
    white-space: nowrap;
}

.btn-wb:hover,
.btn-ozon:hover,
.btn-shop:hover {
    filter: brightness(0.85);
}

.btn-wb {
    background-color: #cb11ab;
}

.btn-ozon {
    background-color: #005bff;
}

 .btn-shop {
     background-color: var(--color-primary);
 }
 
 .buy-btn.btn-wb {
     background-color: #cb11ab;
     border-color: #cb11ab;
     color: #ffffff;
 }
 
 .buy-btn.btn-ozon {
     background-color: #005bff;
     border-color: #005bff;
     color: #ffffff;
 }
 
 .buy-btn.btn-shop {
     background-color: var(--color-primary);
     border-color: var(--color-primary);
     color: #ffffff;
 }
 
 .buy-btn:hover {
     filter: brightness(0.85);
     color: #ffffff;
 }
 
 /* Fix: .product-link:hover overrides marketplace button colors */
 .product-link.btn-wb:hover {
     background-color: #cb11ab;
     color: #ffffff;
 }


.product-link.btn-ozon:hover {
    background-color: #005bff;
    color: #ffffff;
}

.product-link.btn-shop:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
}

/* Product Pages */
.product-hero {
    padding-top: 40px;
    padding-bottom: 20px;
}

.product-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-info h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.product-info .price-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.product-info .price-main {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 600;
}

.buy-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.buy-btn {
    padding: 1rem 2rem;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.buy-btn-name {
    font-size: 1rem;
}

.buy-btn-price {
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-gallery {
    padding: 40px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-description {
    padding: 40px 20px;
}

.product-description .content {
    max-width: 900px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(90, 154, 74, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
}

.feature-card h3 {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.back-link:hover {
    color: var(--color-accent);
}

@media (max-width: 1023px) {
    .product-hero .container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-info h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .buy-buttons {
        flex-direction: column;
    }
}

/* Product Specs Section */
.specs-section {
    padding: 40px 20px;
    background: var(--color-bg-elevated);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.spec-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid rgba(90, 154, 74, 0.15);
    border-radius: 8px;
}

.spec-value {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
}

.spec-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 1.5rem 20px 1rem;
    border-top: 1px solid var(--color-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-content .footer-section:last-child {
    text-align: right;
}

.footer-section h3 {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-section p,
.footer-section a {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-section p {
    margin-bottom: 0.2rem;
}

.footer-section a {
    display: block;
    margin-bottom: 0.2rem;
    transition: color 0.3s var(--transition-smooth);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(45, 73, 31, 0.2);
    text-align: center;
    color: #555;
}

.footer-bottom p {
    margin-bottom: 0.1rem;
    line-height: 1.2;
    font-size: 0.7rem;
    color: #444;
}

.footer-bottom .legal-info {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.15rem;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1023px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .logo {
        max-width: 300px;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .main-nav {
        gap: 0.75rem 1rem;
    }
    
    .production-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .screen {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .logo {
        max-width: 250px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .equipment-category {
        padding: 1rem;
        padding-left: 1rem;
    }
    
    .production-content {
        grid-template-columns: 1fr;
    }
    
    .product-links {
        flex-direction: column;
    }
    
    .product-link {
        flex: none;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
}
