/* ========================================
   OZAP Seeds & Horticulture - Styles
   Modern B2B Corporate Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2D5016;      /* Deep Green */
    --secondary-color: #5A8C2E;    /* Lighter Green */
    --accent-color: #F7941D;       /* Orange Accent */
    --dark-color: #1a1a1a;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

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

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
    padding: 5px;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-color);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: var(--light-gray);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 28px;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 14px;
    color: var(--gray-color);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-menu 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: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2D5016 0%, #5A8C2E 100%);
    overflow: hidden;
}

/* Background Image 
   Доступные фото:
   - photo1.jpg (IMG_1416)
   - photo2.jpg (IMG_1417) - текущее
   - photo3.jpg 
   Для смены просто замените photo2.jpg на нужное
*/
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/photo2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 80, 22, 0.55) 0%,
        rgba(90, 140, 46, 0.45) 50%,
        rgba(45, 80, 22, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 850px;
    margin: 0 auto 50px;
    line-height: 1.9;
    opacity: 1;
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e68310;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(247, 148, 29, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.company-details {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.company-details p {
    margin-bottom: 8px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Products Section */
.products-section {
    background: var(--light-gray);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-emoji {
    font-size: 5rem;
}

.product-image-photo {
    width: 100%;
    aspect-ratio: 1 / 1; /* Точный квадрат */
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-photo {
    display: block; /* Убираем baseline-gap */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* можно подкрутить на мобиле через media */
    transition: var(--transition);
}

.product-card:hover .product-photo {
    transform: scale(1.1);
}

.product-card h3 {
    padding: 25px 25px 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.product-card p {
    padding: 0 25px 25px;
    color: var(--gray-color);
    line-height: 1.7;
}

/* Partners Section */
.partners-info {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
}

/* Partners Grid */
.partners-grid-new {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 350px));
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
}

.partner-card-new {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card-new:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.partner-logo-box {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo-new {
    max-width: 250px;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-card-new h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.partner-card-desc {
    font-size: 0.95rem;
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.partner-card-new .btn {
    margin-top: auto;
}

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

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

/* Coming Soon Card */
.partner-coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--gray-color);
    opacity: 0.8;
}

.coming-soon-icon {
    opacity: 0.6;
}

.icon-lg {
    font-size: 4rem;
    line-height: 1;
}

.partner-coming-soon h3 {
    color: var(--gray-color);
}

.partner-logo-text-simple {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    font-family: 'Georgia', serif;
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    line-height: 1.8;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

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

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--gray-color);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    background: var(--white);
    padding: 0 5px;
    font-size: 12px;
    color: var(--primary-color);
}

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

/* Turnstile Widget */
.cf-turnstile {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit button states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .about-grid,
    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    /* Hero для планшетов */
    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .partners-grid-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 550px;
    }

    /* Улучшенное фото для мобильных */
    .hero::before {
        background-position: center center;
        background-size: cover;
    }

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(45, 80, 22, 0.65) 0%,
            rgba(90, 140, 46, 0.55) 50%,
            rgba(45, 80, 22, 0.65) 100%
        );
    }

    .hero-content {
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0 auto 35px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .logo-subtitle {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .partners-grid-new {
        grid-template-columns: 1fr;
    }
    
    .product-image-photo {
        padding-top: 0;
        aspect-ratio: 1 / 1; /* точный квадрат без погрешностей */
    }
    .product-photo {
        position: static; /* убираем абсолют для избежания зазоров */
        width: 100%;
        height: 100%;
        display: block; /* убираем baseline-gap */
        object-position: center 35%;
    }
    

    .partner-card-new {
        padding: 30px 20px;
    }
    
    .partner-logo-box {
        height: 100px;
    }
    
    .partner-logo-new {
        max-width: 140px;
        max-height: 70px;
    }
    
    .icon-lg {
        font-size: 3rem;
    }

    .section {
        padding: 50px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }
    .contact-form .btn {
        margin: 0 auto; /* центрируем кнопку отправки */
        max-width: 360px;
        display: block;
    }
    /* Fix tiny hairline gaps on first product image on some iPhones */
    .products-grid .product-card:first-child .product-photo {
        transform: scale(1.01);
    }
    /* Footer - mobile alignment */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-tagline {
        font-size: 13px;
        text-align: center;
    }
    .footer-copyright {
        width: 100%;
        text-align: center;
    }
    /* Language toggle: align with navbar, left of burger */
    .lang-selector {
        top: 16px;
        right: 74px; /* leave space for burger button */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

