/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header & Navigation */
.header {
    
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

/* Container to group nav menu and language buttons together */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* push group to the right by default */
}

/* Center variant for pages that need the nav grouped in the middle */
.nav-right.center {
    margin-left: auto;
    margin-right: auto;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 10px 0;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Language switcher inside navbar */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--dark-color);
    background: #fff;
    font-weight: 600;
}

.lang-switch a:hover {
    background: #f2f2f2;
}

.lang-switch a.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

@media (max-width: 992px) {
    .lang-switch {
        margin-left: 12px;
    }
}

/* Hero Section */
.hero {
    height: 43vh;
    background: 
                url('../Images/farmoish_baner_window.png') center center / contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
}


.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background-color: var(--light-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background-color: var(--dark-color);
    transform: rotateY(180deg);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-color);
  }
  
  .testimonial-slider-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }
  
  .testimonial-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
  }
  
  .testimonial {
    flex: 0 0 calc(33.333% - 20px); /* 3 колонки */
    text-align: center;
    padding: 30px;
    position: relative;
    background:
      linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%) padding-box,
      linear-gradient(135deg, rgba(231, 76, 60, 0.35), rgba(52, 152, 219, 0.35)) border-box;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
  }

  .testimonial::before {
    content: "\201C"; /* “ */
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 42px;
    line-height: 1;
    color: rgba(231, 76, 60, 0.25);
    pointer-events: none;
  }
  
  .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 18px;
    color: var(--dark-color);
  }
  
  .testimonial-author {
    position: relative;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.2px;
    opacity: 0.95;
    padding-top: 12px;
    margin-top: 6px;
  }

  .testimonial-author::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(231,76,60,0), rgba(231,76,60,0.6), rgba(231,76,60,0));
  }
  
  .testlider-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .slider-prev,
  .slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-prev:hover,
  .slider-next:hover {
    background-color: var(--secondary-color);
    color: var(--white);
  }
  

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Director Section Modern */
.director-message {
    padding: 40px 0;
    background: #fff; /* как на изображении — белый фон */
}

.director-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff; /* без карточной тени */
}

.director-text { padding: 0 10px; }

.director-title {
    font-size: 1.8rem; /* немного крупнее */
    font-style: italic;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    color: #222;
    text-align: center;
}

.director-subtitle {
    font-size: 1.1rem; /* немного крупнее */
    color: #222;
    margin-top: 4px;
    margin-bottom: 18px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
}

.director-body p {
    color: #111;
    font-size: 1.05rem; /* немного крупнее текста */
    line-height: 1.9;
    margin-bottom: 14px;
    text-align: justify;
    text-justify: inter-word;
}
.director-body p:not(:first-child){
    text-indent: 1.2em; /* отступ со 2-го абзаца как на образце */
}

.director-sign { margin-top: 18px; font-weight: 600; color: #111; }

.director-body .director-photo { float: right; width: 320px; margin: 4px 0 10px 16px; }

.director-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px; /* практически без скругления */
    box-shadow: none; /* без тени, как в примере */
    border: 1px solid #cfcfcf; /* тонкая рамка */
}

@media (max-width: 900px) {
    .director-body .director-photo { float: none; width: 100%; margin: 0 0 12px 0; }
    .director-text { padding: 0; }
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-item {
        margin: 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

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

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .testimonial {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}
