/* ========================================
   Universefarmer RU - Complete Stylesheet
   ======================================== */

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

:root {
    --primary-green: #2E7D32;
    --dark-green: #1B5E20;
    --light-green: #4CAF50;
    --accent-gold: #FF8F00;
    --white: #ffffff;
    --light-bg: #f5f7f4;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--dark-green);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   Header (used by all pages)
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary-green);
    color: var(--white);
    padding: 6px 0;
    font-size: 0.85rem;
    text-align: center;
}

.header-top .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img {
    height: 45px;
    width: auto;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
}

nav ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-green);
    background: rgba(46, 125, 50, 0.08);
}

/* Hamburger - not used in current HTML but kept for future */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* ========================================
   Section
   ======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 12px auto 0;
}

/* ========================================
   Hero Banner
   ======================================== */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 100px;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.banner-content {
    display: flex;
    align-items: center;
}

.banner-left h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-left p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    max-width: 600px;
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.banner-contact {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.banner-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.banner-contact a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ========================================
   Page Hero (inner pages)
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-dark);
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ========================================
   Product Grid
   ======================================== */
.products-section {
    background: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ========================================
   Tech Grid
   ======================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.3s;
}

.tech-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.tech-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.tech-card h3 i {
    color: var(--primary-green);
    margin-right: 8px;
}

.tech-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.tech-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.tech-card-body {
    padding: 0;
}

/* ========================================
   News Grid
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

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

.news-info {
    padding: 20px;
}

.news-info .date {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.news-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: 2px solid var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

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

/* ========================================
   Floating Contact Bar
   ======================================== */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 8px 0 0 8px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    min-width: 42px;
    justify-content: flex-start;
}

.fc-btn:hover {
    background: var(--dark-green);
    color: var(--white);
    padding-right: 18px;
}

.fc-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.fc-label {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: all 0.3s;
}

.fc-btn:hover .fc-label {
    max-width: 100px;
    opacity: 1;
}

.fc-top {
    background: var(--text-dark);
    border-radius: 8px 0 0 8px;
}

.fc-top:hover {
    background: var(--primary-green);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-info i {
    color: var(--primary-green);
    width: 24px;
    text-align: center;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.3s;
}

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

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

/* ========================================
   Footer
   ======================================== */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding-top: 60px;
}

footer a {
    color: rgba(255,255,255,0.7);
}

footer a:hover {
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3,
.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-links ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-links ul li i {
    width: 20px;
    color: var(--light-green);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ========================================
   News Detail / Category Filters
   ======================================== */
.category-filter {
    text-align: center;
    margin-bottom: 40px;
}

.category-filter .btn {
    margin: 5px;
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--border);
}

.category-filter .btn:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-banner {
        height: 450px;
    }
    
    .banner-left h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-top {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    
    .header-main {
        height: 56px;
    }
    
    .logo img {
        height: 35px;
    }
    
    nav ul {
        gap: 0;
    }
    
    nav ul li a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .hero-banner {
        height: 350px;
        margin-top: 86px;
    }
    
    .banner-left h1 {
        font-size: 1.6rem;
    }
    
    .banner-left p {
        font-size: 0.95rem;
    }
    
    .banner-contact {
        flex-direction: column;
    }
    
    .banner-contact a {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-contact {
        right: 10px;
    }
    
    .fc-btn {
        padding: 8px 10px;
    }
    
    .fc-label {
        display: none;
    }
    
    .fc-btn:hover .fc-label {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-left h1 {
        font-size: 1.3rem;
    }
    
    nav ul li a {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}
