:root {
    --color-accent: #009F4D;
    --bg: #faf7f7;
    --text: #111111;
    --white-color: #ffffff;
    --color-hover: #00B35A;
    --icon-burger: #111111;
    --header-flex: #009F4D;
    --header-flex-border: #009F4D;
    --top-flex-hover: #00B35A;
    --bg-home-badge: #e5f7ee;
    --btn-hover: #00B35A;
    --btn-max: #7c3aed;
    --btn-max-hover: #8B4BFF;
    --btn-telegram: #0088CC;
    --btn-telegram-hover: #0096E0;
    --btn-whatsapp: #25D366;
    --btn-whatsapp-hover: #2FEA75;
    --muted: #666;
    --muted-2: #888;
    --card-border: #e5e5e5;
    --footer-fixed-bg: #faf7f7da;
    --footer-bg: #f5f5f5;
}

body.dark {
    --color-accent: #00c060;
    --bg: #0f0f0f;
    --text: #f5f5f5;
    --white-color: #ffffff;
    --color-hover: #00B35A;
    --icon-burger: #ffffff;
    --header-flex: #1a1a1a;
    --header-flex-border: #f5f5f5;
    --top-flex-hover: #333;
    --bg-home-badge: #0f0f0f;
    --btn-hover: #00B35A;
    --btn-max: #7c3aed;
    --btn-max-hover: #8B4BFF;
    --btn-telegram: #3390EC;
    --btn-telegram-hover: #0096E0;
    --btn-whatsapp: #25D366;
    --btn-whatsapp-hover: #2FEA75;
    --muted: #8f8f8f;
    --muted-2: #bdbdbd;
    --card-border: #222;
    --footer-fixed-bg: #0f0f0fc2;
    --footer-bg: #0f0f0f;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #faf7f7;
}

.main {
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    transition: background-color .25s ease, color .25s ease;
}

h1,
h2,
h3 {
    margin: 0;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    transition: color .25s ease, filter .25s ease, opacity .25s ease, transform .15s ease;
    outline: none;
    color: var(--text);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

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

.grid__columns__2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 15px 0;
}

.grid__columns__4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid__columns__3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.header__a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-button:hover {
    background: var(--btn-hover);
}

.btn-max {
    background: var(--btn-max);
}

.btn-max:hover {
    background: var(--btn-max-hover);
}

.btn-telegram {
    background: var(--btn-telegram);
}

.btn-telegram:hover {
    background: var(--btn-telegram-hover);
}

.btn-whatsapp {
    background: var(--btn-whatsapp);
}

.btn-whatsapp:hover {
    background: var(--btn-whatsapp-hover);
}

header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    background: var(--bg);
    z-index: 10000;
    border-bottom: 1px solid #e5e5e5;
    height: 40px;
    font-weight: 700;
    padding: 4px 0;
    white-space: nowrap;
}

.logo-header__block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-header__block svg {
    display: block;
}

.logo .logo-text {
    position: relative;
    top: 3px;
}

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

.header-menu__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-menu__link {
    display: inline-block;
    position: relative;
    padding: 4px 0;
}

.burger {
    width: 30px;
    height: 22px;
    display: none;
    margin: 0 auto;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--icon-burger);
    border-radius: 3px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-menu {
    display: block;
}

.header-menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-hover);
    transition: .25s;
    border-radius: 2px;
}

.header-menu__link:hover::after {
    width: 100%;
}

.header-menu__link:hover {
    color: var(--color-hover);
}

#themeToggle {
    position: relative;
    bottom: 1px;
    padding: 6px 18px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--text);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

#themeToggle:hover {
    background: var(--text);
    color: var(--bg);
}

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

.phone .header__a {
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.phone .svg__icon {
    display: flex;
    align-items: center;
}

.phone .svg__icon svg {
    display: block;
}


.phone a:hover .phone-text,
.phone a:hover svg path {
    color: var(--color-hover);
    stroke: var(--color-hover);
}

.breadcrumbs {
    display: block;
    margin: 20px 0;
    font-size: 15px;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--color-accent);
}

.breadcrumbs a:hover {
    color: #000;
}

.breadcrumbs svg {
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    bottom: 2px;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: 8px;
    color: var(--color-accent);
    font-size: 20px;
    position: relative;
    bottom: 2px;
}

.breadcrumbs li:last-child::after {
    content: "";
}

/* Светлая тема */
.green-box {
    border: 2px hidden #27ae60;
    padding: 14px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.25);
    color: #111;
    margin: 15px 0;
}

/* Тёмная тема */
body.dark .green-box {
    border-color: #fff;
    background: #0f0f0f;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
}

.share-block {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-block span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-block span svg {
    width: 20px;
    height: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f2f2f2;
    cursor: pointer;
    transition: 0.2s;
}

.share-btn:hover {
    background: #e6e6e6;
}

.save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: .25s;
    position: relative;
    overflow: hidden;
}

.save-btn .star {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="white" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2l3 7h7l-5.5 4.5L18 21l-6-4-6 4 1.5-7.5L2 9h7z"/></svg>') center/contain no-repeat;
    transition: .3s;
}

/* состояние "сохранено" */
.save-btn.saved {
    background: #009f4d;
}

.save-btn.saved .text {
    font-weight: 600;
}

/* анимация звезды */
.save-btn.saved .star {
    transform: scale(1.4) rotate(20deg);
    background: url('data:image/svg+xml;utf8,<svg fill="yellow" stroke="white" stroke-width="1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2l3 7h7l-5.5 4.5L18 21l-6-4-6 4 1.5-7.5L2 9h7z"/></svg>') center/contain no-repeat;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    background: #ffffff;
}

table td {
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
}

table tr:nth-child(even) {
    background: #f7f7f7;
}

table td:first-child {
    font-weight: 600;
    color: var(--color-accent);
}

.text-center {
    text-align: center;
    background: #f0f0f0;
}

body.dark table {
    background: #0f0f0f;
}

body.dark table td {
    border-color: #333;
}

body.dark table tr:nth-child(even) {
    background: #1a1a1a;
}

body.dark .text-center {
    background: #1c1c1c;
}

.pests-table img {
    max-width: none;
}

.pests-table a {
    color: #009F4D;
}

.pests-table a:hover {
    text-decoration: underline;
}

.pests-table span {
    color: #777;
    font-size: 0.9em;
}

.top__flex {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 20px 60px;
    bottom: 30px;
}

.top__fixed-line {
    display: flex;
    position: fixed;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--header-flex-border);
    font-weight: 700;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    color: var(--white-color);
    border-radius: 30px;
    background: var(--header-flex);
    padding: 10px 12px;
    width: max-content;
}

.top__fixed-line:hover {
    background: var(--top-flex-hover);
}

.home__top .grid__columns__2 {
    grid-template-columns: 1fr auto;
}

.home__content__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.home__badge span {
    background: var(--bg-home-badge);
    padding: 3px 8px;
    border-radius: 30px;
}


/* Заголовок */
.home__title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

/* Подзаголовок */
.home__subtitle {
    font-size: 18px;
}

/* Кнопки */
.home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--white-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    width: 180px;
}

.btn-primary svg {
    margin-bottom: 3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
}


/* Метки */
.home__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.home__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home__meta-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}


/* Правая часть */
.home__content__right {
    background: radial-gradient(circle at top left, rgba(0, 159, 77, 0.12), transparent 55%), var(--bg);
    padding: 24px;
    border-radius: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: .25s ease;
}

.home__content__right:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Заголовок карточки */
.home__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home__card-title {
    font-size: 20px;
    font-weight: 700;
}

.home__card-tag {
    background: var(--header-flex);
    color: var(--white-color);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* Статистика */
.home__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home__stat-label {
    font-size: 14px;
}

.home__stat-value {
    font-size: 24px;
    font-weight: 800;
}

/* Чипсы */
.home__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home__chip {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: .25s ease;
}

.home__chip:hover {
    background: var(--color-accent);
    color: var(--white-color);
}

.section {
    padding: 40px 0;
}

.section__label {
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section h2 {
    margin: 10px 0 20px;
}

.block__text {
    color: var(--muted-2);
    margin-bottom: 30px;
}

.privilege__link {
    display: block;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 20px;
}

.privilege__link:hover {
    background: var(--card-border);
    transform: translateY(-3px);
}

.privilege__title h3 {
    margin: 10px 0 8px;
}

.privilege__title p {
    color: var(--muted-2);
    line-height: 1.4;
}

.privilege__title {
    display: flex;
    flex-direction: column;
}

.privilege__title>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privilege__title svg {
    display: block;
}

.protsess .privilege__badge {
    color: var(--color-accent);
    background: var(--bg-home-badge);
    padding: 3px 8px;
    border-radius: 30px;
}

.otzyvy .privilege__badge {
    color: #f5a623;
    letter-spacing: 2px;
}

/* Подкатегории */
.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
    background: var(--bg);
}

.subcat-item {
    padding: 10px 14px;
    background: var(--header-flex);
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
}

.subcat-item:hover {
    background: var(--color-hover);
}

/* ====== Секция отзывов ====== */
.reviews-section {
    margin: 40px 0;
}

.reviews-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* ====== Сетка ====== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ====== Карточка отзыва ====== */
.review-card {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Декоративная кавычка */
.review-card::before {
    content: "“";
    font-size: 70px;
    color: #009F4D;
    opacity: 0.12;
    position: absolute;
    top: 5px;
    left: 15px;
    line-height: 1;
}

/* ====== Текст отзыва ====== */
.review-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    color: var(--muted-2);
}

/* ====== Автор ====== */
.review-author {
    font-weight: 600;
    text-align: right;
    font-size: 15px;
    margin-bottom: 5px;
}

/* ====== Рейтинг ====== */
.rating {
    color: #f39c12;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
}

footer {
    border-top: 1px solid var(--card-border);
    background: var(--footer-bg);
    padding: 40px 15px 80px;
}

footer .footer__content {
    align-self: start;
}

footer .flex__row.container {
    flex-wrap: wrap;
}

.footer__content-heading {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.footer__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__content ul li {
    margin-bottom: 8px;
}

.footer-menu__link:hover {
    color: var(--color-hover);
}

footer .btn-primary {
    padding: 10px 14px;
    margin-bottom: 10px;
}

footer .copyright {
    border-top: 1px solid var(--card-border);
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--muted-2);
    padding-top: 15px;
}

.footer-fixed {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
}

.footer-fixed__messenger {
    background: var(--footer-fixed-bg);
    border: 1px solid var(--card-border);
    margin: 6px auto;
    display: flex;
    padding: 10px;
    border-radius: 10px;
    max-width: 580px;
    gap: 16px;
    justify-content: center;
}

.footer-fixed__link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.footer-fixed__link svg {
    width: 20px;
    height: 20px;
    display: block;
}

@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .header-menu {
        position: absolute;
        top: 49px;
        left: 0;
        width: 100%;
        background: var(--bg);
        padding: 20px 0;
        display: none;
    }

    .header-menu.active {
        display: block;
    }

    .header-menu__list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hidden-lg {
        display: none;
    }

    #themeToggle {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        border: none;
        background: var(--bg);
        justify-content: center;
        gap: 0;
    }

    .theme-text {
        display: none;
    }
}

@media (max-width: 900px) {

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

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

    .home__top .grid__columns__2 {
        grid-template-columns: 1fr;
    }

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

    .home__title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .hidden-md {
        display: none;
    }

    footer .btn-primary {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    footer .flex__row {
        display: flex;
        flex-direction: column;
        /* ставим блоки друг под другом */
        gap: 30px;
    }

    footer .flex__row .footer__content {
        width: 100%;
        text-align: left;
        /* текст слева */
    }

    .footer__content-heading {
        display: block;
        width: 100%;
        text-align: left;
        /* заголовок тоже слева */
        margin-bottom: 10px;
    }

    footer .flex__row .footer__content ul {
        padding: 0;
        margin: 0;
        text-align: left;
        /* список слева */
    }

    footer .flex__row .footer__content ul li {
        list-style: none;
    }

    footer .flex__row .btn-primary {
        margin: 5px 0;
        /* кнопки тоже слева */
        display: inline-flex;
    }

    footer .flex__row .copyright {
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {

    .home__title {
        font-size: 28px;
    }

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

    /* На маленьких экранах разрешаем блоку сжиматься */
    .top__fixed-line {
        max-width: 70%;
        left: 50%;
        transform: translateX(-50%);
        gap: 6px;
        font-size: 14px;
    }

    .footer-fixed {
        font-size: 14px;
    }

    .footer-fixed__messenger {
        gap: 10px;
        padding: 8px 8px 1px 8px;
        margin: 0 auto;
        border-radius: 0;
    }

    .footer-fixed__link {
        gap: 0 !important;
    }

    .footer-fixed__link svg {
        width: 18px;
        height: 18px;
    }
}

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

@media (max-width: 360px) {
    .footer-fixed {
        font-size: 13px;
    }

    .footer-fixed__messenger {
        gap: 6px;
        padding: 6px;
        margin: 0 auto;
    }

    .footer-fixed__link svg {
        width: 16px;
        height: 16px;
    }
}
