/* AgriLab FAQ — стилі в палітрі теми (зелений #79b90f, синій #1857a6). */

.agl-faq {
    background: rgba(235, 235, 235, .4);
    padding-bottom: 40px;
}

.agl-faq h1.main-title {
    margin: 10px 0 16px;
    color: #333;
}

.agl-faq__intro {
    max-width: 820px;
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.55;
    color: #4c4c4c;
}

/* Зміст розділів */
.agl-faq__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 36px;
}

.agl-faq__toc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px 0;
    background: #fff;
    color: #1857a6;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: background .2s, color .2s;
}

.agl-faq__toc-link:hover,
.agl-faq__toc-link:focus-visible {
    background: #1857a6;
    color: #fff;
}

.agl-faq__toc-count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #79b90f;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

/* Групи */
.agl-faq__group {
    margin: 0 0 40px;
    scroll-margin-top: 120px;
}

.agl-faq__group-title {
    margin: 0 0 16px;
    font-family: Barnaul, Ubuntu, sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    color: #1857a6;
}

/* Питання-акордеон (нативний <details>, текст є в HTML без JS) */
.agl-faq__item {
    margin: 0 0 10px;
    background: #fff;
    border-left: 4px solid transparent;
    border-radius: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    scroll-margin-top: 120px;
    transition: border-color .2s;
}

.agl-faq__item[open] {
    border-left-color: #79b90f;
}

.agl-faq__summary {
    position: relative;
    display: block;
    padding: 18px 56px 18px 22px;
    cursor: pointer;
    list-style: none;
}

.agl-faq__summary::-webkit-details-marker {
    display: none;
}

.agl-faq__summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid #79b90f;
    border-bottom: 2px solid #79b90f;
    transform: rotate(45deg);
    transition: transform .2s;
}

.agl-faq__item[open] > .agl-faq__summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.agl-faq__summary:focus-visible {
    outline: 2px solid #1857a6;
    outline-offset: 2px;
}

.agl-faq__q {
    margin: 0;
    font-family: Ubuntu, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}

.agl-faq__a {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #4c4c4c;
}

.agl-faq__a p {
    margin: 0 0 12px;
}

.agl-faq__more {
    color: #79b90f;
    font-weight: 500;
    text-decoration: none;
}

.agl-faq__more:hover {
    text-decoration: underline;
}

.agl-faq__cta-intro {
    padding-top: 10px;
    padding-bottom: 10px;
}

.agl-faq__cta-intro p {
    margin: 0;
    font-size: 16px;
    color: #4c4c4c;
}

/* Окреме питання */
.agl-faq-single {
    max-width: 860px;
    padding: 28px 32px 32px;
    background: #fff;
    border-radius: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.agl-faq--single h1.main-title {
    margin-top: 0;
    line-height: 1.2;
}

.agl-faq__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0 0 20px;
    font-size: 13px;
    color: #777;
}

.agl-faq__meta a {
    color: #1857a6;
}

.agl-faq__lead {
    margin: 0 0 22px;
    padding: 16px 20px;
    background: #f3f9e8;
    border-left: 4px solid #79b90f;
    font-size: 16px;
    line-height: 1.55;
    color: #333;
}

.agl-faq__content {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
}

.agl-faq__content p,
.agl-faq__content ul,
.agl-faq__content ol {
    margin: 0 0 16px;
}

.agl-faq__content ul,
.agl-faq__content ol {
    padding-left: 22px;
}

.agl-faq__content ul {
    list-style: disc;
}

.agl-faq__content ol {
    list-style: decimal;
}

.agl-faq__content li {
    margin: 0 0 6px;
}

.agl-faq__content h2,
.agl-faq__content h3 {
    margin: 26px 0 12px;
    font-family: Barnaul, Ubuntu, sans-serif;
    color: #1857a6;
}

.agl-faq__service {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.agl-faq__service-label {
    color: #777;
}

.agl-faq__service a:not(.btn) {
    color: #1857a6;
    font-weight: 500;
}

.agl-faq .agl-faq__btn {
    width: auto;
    margin: 0;
    padding: 0 24px;
}

.agl-faq__related {
    max-width: 860px;
    margin: 36px 0 10px;
}

.agl-faq__related ul {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.agl-faq__related li {
    margin: 0 0 8px;
}

.agl-faq__related li a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(24, 87, 166, .3);
}

.agl-faq__related li a:hover {
    color: #1857a6;
}

/* Фото форми теми піднято на -121px — даємо йому місце */
.agl-faq .form-wrapp {
    margin-top: 150px;
}

@media (max-width: 767px) {
    .agl-faq h1.main-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .agl-faq__group-title {
        font-size: 21px;
    }

    .agl-faq__summary {
        padding: 15px 46px 15px 16px;
    }

    .agl-faq__summary::after {
        right: 18px;
    }

    .agl-faq__a {
        padding: 0 16px 16px;
    }

    .agl-faq-single {
        padding: 20px 16px 24px;
    }

    .agl-faq__service {
        flex-direction: column;
        align-items: stretch;
    }
}
