/*
 * style.css
 * Основные стили для сайта ЦитоАмин Тургор
 * Вся вёрстка вынесена из HTML для удобства поддержки.
 */

/* global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* base typography */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* helpers */
.icon-right {
    margin-right: 10px;
    color: var(--accent);
}
.mt-20 {
    margin-top: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* layout container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* brand colors (CSS variables) */
:root {
    --primary: #005A50;      /* тёмно-зелёный */
    --accent: #C8C814;       /* желто-зелёный */
    --light-bg: #f9f9f9;
    --text-dark: #1e2d2b;
}

/* utility classes */
.bg-primary {
    background-color: var(--primary);
    color: white;
}
.text-primary {
    color: var(--primary);
}
.bg-accent {
    background-color: var(--accent);
}
.text-accent {
    color: var(--accent);
}

/* buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* header */
header {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo img {
    height: 60px;
    width: auto;
    display: block;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
}
nav ul li a:hover {
    color: var(--accent);
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* language switcher */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}
.lang-button:hover {
    background-color: rgba(0, 90, 80, 0.05);
}
.lang-button img {
    height: 24px;
    width: 24px;
    border-radius: 4px;
}
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    min-width: 200px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    z-index: 101;
    overflow: hidden;
}
.lang-menu.active {
    display: flex;
}
.lang-option {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    color: var(--primary);
    transition: background-color 0.2s;
    font-family: 'Open Sans', sans-serif;
}
.lang-option:hover {
    background-color: var(--light-bg);
}
.lang-option.active {
    background-color: rgba(200, 200, 20, 0.1);
    font-weight: 600;
}
.lang-option img {
    height: 20px;
    width: 20px;
    border-radius: 3px;
}

/* hero section */
.hero {
    background: linear-gradient(135deg, rgba(0,90,80,0.85) 0%, rgba(0,90,80,0.7) 100%), url('images/1.jpg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}
.hero .subhead {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 20px;
}
.hero .highlight {
    background-color: rgba(200,200,20,0.25);
    padding: 15px 20px;
    border-radius: 60px;
    display: inline-block;
    font-size: 1.4rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* generic section spacing */
section {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary);
    text-transform: uppercase;
}
.section-title span {
    color: var(--accent);
}

/* problem section */
.problem-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.problem-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.problem-text ul {
    list-style: none;
    margin: 20px 0;
}
.problem-text ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.problem-text ul li i {
    color: var(--accent);
    font-size: 1.5rem;
    width: 30px;
}
.problem-image {
    background: url('images/2.jpg') center/cover no-repeat;
    min-height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

/* science section */
.science {
    background-color: var(--light-bg);
}
.science-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.science-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(0,90,80,0.1);
}
.science-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.science-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.science-card p {
    color: #555;
}
.ref {
    margin-top: 40px;
    padding: 20px;
    background: rgba(200,200,20,0.1);
    border-left: 4px solid var(--accent);
    font-style: italic;
}

/* benefits cards */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}
.benefit-item:hover {
    border-bottom-color: var(--accent);
}
.benefit-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.benefit-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* mechanism section */
.mechanism {
    background: var(--primary);
    color: white;
}
.mechanism .section-title {
    color: white;
}
.mechanism .section-title span {
    color: var(--accent);
}
.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.mechanism-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(200,200,20,0.3);
}
.mechanism-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.mechanism-item h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* application section */
.application-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--light-bg);
    padding: 60px;
    border-radius: 30px;
}
.crops-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.crop-tag {
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.dosage-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.dosage-box h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}
.dosage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.dosage-item i {
    color: var(--accent);
    font-size: 1.5rem;
    width: 30px;
}

/* faq section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 0 25px;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem;
}
.faq-question i {
    color: var(--accent);
    transition: 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    border-top: 1px solid transparent;
}
.faq-answer p {
    padding-bottom: 20px;
    color: #555;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    border-top-color: #eee;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* expert section */
.expert {
    background: var(--light-bg);
    text-align: center;
}
.expert-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.expert-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: url('images/3.jpg') center/cover no-repeat;
    margin-bottom: 20px;
    border: 4px solid var(--accent);
}
.expert-name {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.expert-title {
    color: #777;
    margin-bottom: 25px;
}
.expert-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    max-width: 600px;
}

/* contact section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.contact-info {
    flex: 1;
    min-width: 300px;
}
.contact-info h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-detail i {
    font-size: 1.8rem;
    color: var(--accent);
    width: 40px;
}
.qr-placeholder {
    width: 220px;
    height: 220px;
    background: var(--primary);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 5px solid var(--accent);
}
.qr-placeholder i {
    font-size: 6rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 30px 0;
    text-align: center;
}
.footer-links {
    margin-top: 15px;
    display: flex;
    gap: 30px;
    justify-content: center;
}
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* component-specific helpers */
.app-crops-heading {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.composition-list {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* responsive breakpoints */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .problem-wrapper,
    .application-wrapper,
    .mechanism-grid,
    .science-grid {
        grid-template-columns: 1fr;
    }
    .mechanism-grid { gap: 20px; }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 15px;
    }
    nav ul.active {
        display: flex;
    }
    .hero h1 { font-size: 2.4rem; }
    .hero .subhead { font-size: 1.4rem; }
    .section-title { font-size: 2rem; }
    .expert-card { padding: 30px 20px; }
}
