/* ============================================================
   INSTRUCTION.CSS — Полные стили для страницы инструкций
   (без зависимостей от common.css)
   ============================================================ */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --accent: #87FF32;
    --accent-dark: #6fd43a;
    --white: #F4FBF3;
    --black: #101413;
    --primary: #2c7873;
    --primary-dark: #1e5a56;
    --text-dark: #101413;
    --text-medium: #444444;
    --text-light: #666666;
    --text-muted: #888888;
    --header-height: 80px;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

/* ===== СБРОС И БАЗА ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    min-height: 100vh;
    padding: 20px;
    padding-top: calc(var(--header-height) + 30px);
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(16, 20, 19, 0.06);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin: 0 auto;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(135, 255, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(135, 255, 50, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid rgba(16, 20, 19, 0.15);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(44, 120, 115, 0.05);
    transform: translateY(-3px);
}

/* ===== ШАПКА ===== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px 0 20px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.header-wrapper * {
    pointer-events: auto;
}

.header-wrapper.scrolled {
    background: transparent;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header {
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(16, 20, 19, 0.08);
    padding: 0 16px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-wrapper.scrolled .header {
    height: calc(var(--header-height) - 12px);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 5px;
}

.header-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--black);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.header-logo-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    display: block;
}

.header-logo:hover .header-logo-icon {
    transform: scale(1.05) rotate(-4deg);
}

.header-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.header-logo-text span {
    color: var(--text-dark);
}

.header-logo:hover .header-logo-text {
    color: var(--primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex-wrap: nowrap;
}

.header-nav li {
    position: relative;
    flex-shrink: 0;
}

.header-nav a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav a i {
    font-size: 0.75rem;
    opacity: 0.5;
}

.header-nav a:hover {
    color: var(--text-dark);
    background: rgba(16, 20, 19, 0.05);
}

.header-nav a:hover i {
    opacity: 0.8;
    color: var(--primary);
}

.header-nav a.active {
    color: var(--primary);
    background: rgba(44, 120, 115, 0.08);
}

.header-nav a.active i {
    opacity: 1;
    color: var(--primary);
}

.header-nav a.delivery-btn {
    color: var(--text-light);
    background: transparent;
    border: none;
    padding: 5px 10px;
}

.header-nav a.delivery-btn:hover {
    color: var(--text-dark);
    background: rgba(16, 20, 19, 0.05);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 100;
    flex-shrink: 0;
    margin-left: 5px;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all var(--transition);
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
    padding: 40px 0 20px;
    background: var(--white);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(44, 120, 115, 0.10);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    width: fit-content;
    border: 1px solid rgba(44, 120, 115, 0.15);
    margin: 0 auto 15px;
}

.hero-badge-link {
    cursor: pointer;
    transition: all var(--transition);
}

.hero-badge-link:hover {
    background: rgba(44, 120, 115, 0.18);
    transform: translateY(-2px);
}

/* ===== CTA-КНОПКА НА КАЛЬКУЛЯТОР ===== */
.calc-cta-btn {
    display: inline-block;
    padding: 18px 30px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #87FF32 0%, #2ecc71 100%);
    border-radius: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    transition: all var(--transition);
}

.cta-highlight {
    display: inline-block;
    margin-top: 4px;
    font-size: 1.15em;
    letter-spacing: 0.5px;
}

.calc-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(135, 255, 50, 0.35);
}

.hero-calc-cta {
    margin-top: 20px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin-top: 20px;
}

.hero-cta-group .hero-calc-cta {
    margin-top: 0;
}

.buy-cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.buy-cta-btn:hover {
    box-shadow: 0 10px 20px rgba(44, 120, 115, 0.35);
}

.fertilizer-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
}

.hero-badge i {
    color: var(--accent-dark);
    font-size: 1.2rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== ВЫБОР УДОБРЕНИЯ ===== */
#selector {
    padding: 40px 0 10px;
    border-bottom: none;
}

.fertilizer-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.fert-btn {
    padding: 24px 22px;
    border-radius: 14px;
    border: 2px solid rgba(44, 120, 115, 0.35);
    background: rgba(44, 120, 115, 0.10);
    color: var(--primary-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.fert-btn:hover {
    border-color: var(--primary);
    background: rgba(44, 120, 115, 0.18);
    transform: translateY(-2px);
}

.fert-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.fert-btn-wide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(44, 120, 115, 0.08);
    border: 2px dashed var(--primary);
    color: var(--primary);
    font-size: 1.05rem;
}

.fert-btn-wide:hover {
    background: rgba(44, 120, 115, 0.14);
    border-style: solid;
}

.fert-btn-wide.active {
    background: var(--primary);
    border-style: solid;
    color: var(--white);
}

/* ===== ИНФОРМАЦИЯ ОБ УДОБРЕНИИ ===== */
#fertilizer-info {
    padding-top: 10px;
}

.fertilizer-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fertilizer-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(16, 20, 19, 0.06);
}

.fertilizer-card-placeholder .fertilizer-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.fertilizer-card-placeholder .fertilizer-section p {
    font-size: 1.05rem;
}

.fertilizer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(44, 120, 115, 0.1);
}

.fertilizer-header .fertilizer-icon {
    width: 60px;
    height: 60px;
    background: rgba(44, 120, 115, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.fertilizer-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.fertilizer-header h2 span {
    color: var(--primary);
}

.fertilizer-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.fertilizer-images .fertilizer-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid rgba(16, 20, 19, 0.06);
}

.fertilizer-images .fertilizer-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.fertilizer-images .fertilizer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fertilizer-section {
    margin-bottom: 25px;
}

.fertilizer-section:last-child {
    margin-bottom: 0;
}

.fertilizer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fertilizer-section h3 i {
    font-size: 1.1rem;
    color: var(--accent-dark);
}

.fertilizer-section p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.fertilizer-section ul {
    list-style: disc;
    padding-left: 22px;
}

.fertilizer-section ul li {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    padding: 4px 0;
}

/* Таблица состава */
.composition-table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

.composition-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.95rem;
}

.composition-table thead th {
    background: rgba(44, 120, 115, 0.08);
    color: var(--text-dark);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--primary);
}

.composition-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(16, 20, 19, 0.06);
    color: var(--text-medium);
}

.composition-table tbody tr:hover {
    background: rgba(44, 120, 115, 0.03);
}

.composition-table tbody tr:last-child td {
    border-bottom: none;
}

/* Дозировка */
.dosage-highlight {
    background: rgba(44, 120, 115, 0.06);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 10px 0;
}

.dosage-highlight p {
    margin: 0;
    font-weight: 500;
}

.dosage-highlight ul {
    margin-top: 5px;
}

/* ===== ДЕФИЦИТЫ ===== */
#deficiencies {
    background: rgba(44, 120, 115, 0.03);
    display: none;
}

#deficiencies.visible {
    display: block;
}

.deficiency-table-wrapper {
    margin-top: 30px;
}

.deficiency-images {
    margin-bottom: 30px;
}

.deficiency-main-image {
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

.deficiency-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deficiency-table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(16, 20, 19, 0.06);
}

.deficiency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.deficiency-table thead th {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
}

.deficiency-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.deficiency-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.deficiency-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(16, 20, 19, 0.06);
    color: var(--text-medium);
    vertical-align: top;
    line-height: 1.5;
}

.deficiency-table tbody td:first-child {
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.deficiency-table tbody tr:hover {
    background: rgba(44, 120, 115, 0.03);
}

.deficiency-table tbody tr:last-child td {
    border-bottom: none;
}

.deficiency-table .def-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid rgba(16, 20, 19, 0.06);
}

.deficiency-table .def-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.deficiency-table .def-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ПОДВАЛ ===== */
.footer-note {
    text-align: center;
    padding: 25px;
    color: var(--text-medium);
    font-size: 0.95rem;
    border-top: 1px solid rgba(16, 20, 19, 0.1);
    background: rgba(16, 20, 19, 0.02);
    font-weight: 500;
    margin-top: 40px;
}

.contacts-footer {
    padding: 20px;
    border-top: 1px solid rgba(16, 20, 19, 0.1);
}

.contacts-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-value {
    color: var(--text-medium);
    font-weight: 500;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contacts-container {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        text-align: left;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10000;
    background: none;
    border: none;
    font-family: inherit;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.lightbox-nav.prev {
    left: -80px;
}

.lightbox-nav.next {
    right: -80px;
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 400;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 18px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .fertilizer-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lightbox-nav.prev {
        left: -40px;
    }
    .lightbox-nav.next {
        right: -40px;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 880px) {
    :root {
        --header-height: 64px;
    }
    body {
        padding: 12px;
        padding-top: calc(var(--header-height) + 20px);
    }
    .header-wrapper {
        padding: 8px 12px 0 12px;
    }
    .header {
        padding: 0 14px;
        height: var(--header-height);
        border-radius: 12px;
    }
    .header-wrapper.scrolled .header {
        height: calc(var(--header-height) - 8px);
    }
    .header-logo-text {
        font-size: 0.95rem;
    }
    .header-logo-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        padding: 70px 30px 30px;
        gap: 2px;
        z-index: 60;
        align-items: stretch;
        overflow-y: auto;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .header-nav.open {
        display: flex;
        transform: translateX(0);
    }
    .header-nav a {
        font-size: 1.1rem;
        padding: 14px 18px;
        border-radius: 10px;
        justify-content: flex-start;
        white-space: normal;
        border: none;
        color: var(--text-dark);
    }
    .header-nav a:hover {
        background: rgba(16, 20, 19, 0.05);
    }
    .header-nav a.active {
        background: rgba(44, 120, 115, 0.08);
        color: var(--primary);
    }
    .header-nav a i {
        width: 28px;
        text-align: center;
        font-size: 1.1rem;
        opacity: 0.6;
    }
    .burger {
        display: flex;
    }
    body.menu-open {
        overflow: hidden;
    }

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

    .fertilizer-card {
        padding: 25px 20px;
    }

    .fertilizer-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fertilizer-header h2 {
        font-size: 1.6rem;
    }

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

    .fertilizer-images .fertilizer-img:last-child {
        display: none;
    }

    .fertilizer-buttons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .fert-btn {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    .composition-table {
        font-size: 0.85rem;
    }

    .composition-table thead th,
    .composition-table tbody td {
        padding: 8px 12px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .lightbox-nav.prev {
        left: -10px;
    }
    .lightbox-nav.next {
        right: -10px;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }
    body {
        padding: 8px;
        padding-top: calc(var(--header-height) + 14px);
    }
    .header-wrapper {
        padding: 6px 6px 0 6px;
    }
    .header-logo-text {
        font-size: 0.8rem;
    }
    .header-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        border-radius: 7px;
    }
    .header {
        padding: 0 10px;
        border-radius: 10px;
        height: var(--header-height);
    }
    .header-nav {
        padding: 60px 16px 20px;
    }
    .header-nav a {
        font-size: 1rem;
        padding: 12px 14px;
    }
    .burger span {
        width: 22px;
        height: 2.5px;
    }
    .burger {
        padding: 6px;
        gap: 4px;
    }

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

    .fertilizer-images {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .fertilizer-images .fertilizer-img:last-child {
        display: none;
    }

    .fertilizer-section h3 {
        font-size: 1.1rem;
    }

    .deficiency-table {
        font-size: 0.85rem;
        min-width: 400px;
    }

    .deficiency-table thead th,
    .deficiency-table tbody td {
        padding: 8px 12px;
    }

    .deficiency-table .def-img {
        width: 60px;
        height: 45px;
    }

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

    .container {
        padding: 0 12px;
    }

    .lightbox-nav {
        display: none !important;
    }
}