@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #153b37;
    --muted: #748985;
    --green: #137b68;
    --green-dark: #0c5d52;
    --mint: #e8f5f1;
    --line: #e8efec;
    --paper: #fff;
    --background: #fbfdfc;
    font-family: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.announcement {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 0 max(calc((100vw - 1200px) / 2), 5vw);
    color: #e9f8f2;
    background: #123f39;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}
.announcement__dot { width: 6px; height: 6px; border-radius: 50%; background: #8bd1ad; }
.announcement__right { margin-left: auto; font-size: 10px; font-weight: 500; letter-spacing: .03em; opacity: .76; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(1200px, 90%);
    min-height: 86px;
    margin: auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
    position: relative;
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border-radius: 13px;
    background: var(--green);
    box-shadow: 0 7px 16px #137b6825;
}
.brand__mark::before, .brand__mark::after, .brand__mark span::before, .brand__mark span::after {
    position: absolute;
    content: "";
    border-radius: 3px;
    background: #fff;
}
.brand__mark::before { width: 19px; height: 6px; }
.brand__mark::after { width: 6px; height: 19px; }
.brand__text { display: grid; gap: 3px; }
.brand__text strong { font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: .11em; }
.brand__text small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: 32px; }
.main-nav a { color: #728580; font-size: 12px; font-weight: 600; transition: color .2s; }
.main-nav a:hover, .main-nav .main-nav__active { color: var(--green); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button--admin { color: var(--ink); background: #fff; border: 1px solid #dfe9e5; }
.button--admin:hover { border-color: #9dc9bc; box-shadow: 0 5px 16px #193c3512; }
.button--primary { color: #fff; background: var(--green); box-shadow: 0 9px 22px #137b6828; }
.button--primary:hover { background: var(--green-dark); }

main { overflow: hidden; }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    width: min(1200px, 90%);
    min-height: 440px;
    margin: 8px auto 60px;
    padding: 50px 7.4%;
    overflow: hidden;
    border-radius: 19px;
    background: linear-gradient(112deg, #edf8f4 0%, #f0f8f5 54%, #e6f4ee 100%);
}
.hero__copy { position: relative; z-index: 1; }
.eyebrow { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.eyebrow__cross { display: inline-grid; width: 17px; height: 17px; margin-right: 6px; place-items: center; border-radius: 5px; color: white; background: var(--green); font-size: 15px; vertical-align: middle; }
.hero h1 { margin: 19px 0 13px; font-family: Manrope, sans-serif; font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: -.055em; line-height: 1.13; }
.hero h1 span { color: var(--green); }
.hero__copy > p { max-width: 430px; margin: 0; color: #6d8580; font-size: 13px; line-height: 1.8; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 23px; }
.hero__actions .button { min-height: 46px; padding: 0 21px; }
.hero__login, .text-link { color: var(--green); font-size: 11px; font-weight: 700; }
.hero__login span, .text-link span { margin-left: 5px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 32px; color: #6e8580; font-size: 9px; font-weight: 600; }
.hero__trust b { margin-right: 4px; color: var(--green); font-size: 13px; }
.hero__number { position: absolute; right: 28px; bottom: 15px; color: #137b6812; font-family: Manrope, sans-serif; font-size: 78px; font-weight: 800; letter-spacing: -.08em; }
.hero-art { position: relative; width: 100%; height: 330px; }
.hero-art__halo { position: absolute; top: 16px; left: 50%; width: 280px; height: 280px; transform: translateX(-50%); border: 1px solid #b9d8cd; border-radius: 50%; box-shadow: 0 0 0 20px #ffffff18, 0 0 0 42px #ffffff12; }
.hero-art__halo::before, .hero-art__halo::after { position: absolute; inset: 18px; border: 1px dashed #bbdacf; border-radius: 50%; content: ""; }
.hero-art__halo::after { inset: -18px; border-style: solid; opacity: .45; }
.hero-art__cross { position: absolute; top: 30px; right: 24px; color: #84bdaa; font-size: 32px; font-weight: 400; }
.medicine-box { position: absolute; top: 44px; left: 50%; width: 174px; height: 222px; padding: 16px; transform: translateX(-50%) rotate(-5deg); border: 1px solid #e1ece6; border-radius: 11px; background: linear-gradient(135deg,#fff 0%,#fbfdfa 73%,#e7f2eb 100%); box-shadow: 10px 24px 35px #19453b20; }
.medicine-box__top { display: flex; align-items: center; justify-content: space-between; color: #60837a; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.medicine-box__top b { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: white; background: var(--green); font-size: 18px; }
.medicine-box__band { height: 62px; margin: 21px -16px 13px; background: linear-gradient(110deg,#3b9c7d,#9bd5a9); }
.medicine-box__label { color: #234c43; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; line-height: 1.1; }
.medicine-box__label small { color: #83a199; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 500; }
.medicine-box__leaf { position: absolute; right: 15px; bottom: 11px; color: #68a785; font-size: 23px; }
.capsule { position: absolute; z-index: 1; width: 71px; height: 29px; overflow: hidden; border: 1px solid #d2e1da; border-radius: 30px; background: #fff; box-shadow: 0 10px 20px #315f4c18; }
.capsule span { display: block; width: 50%; height: 100%; border-right: 1px solid #bad7c8; background: linear-gradient(150deg,#aadab6,#68b888); }
.capsule--one { top: 193px; left: 14%; transform: rotate(-35deg); }
.capsule--two { top: 81px; right: 12%; transform: rotate(38deg); }
.capsule--two span { margin-left: auto; border-right: 0; border-left: 1px solid #bad7c8; background: #fff; }
.hero-art__spark { position: absolute; color: #84bdaa; font-size: 18px; }
.hero-art__spark--one { top: 38px; left: 23%; }
.hero-art__spark--two { right: 18%; bottom: 59px; color: #d3a656; font-size: 13px; }
.hero-art__note { position: absolute; right: 2%; bottom: 21px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #eef2ef; border-radius: 10px; background: #fff; box-shadow: 0 9px 24px #173d3517; }
.hero-art__note-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: var(--green); background: #e5f4ed; font-size: 13px; font-weight: 700; }
.hero-art__note span:last-child { display: grid; gap: 3px; }
.hero-art__note b { font-size: 9px; }
.hero-art__note small { color: var(--muted); font-size: 8px; }

.category-section, .catalog-section { width: min(1200px, 90%); margin: 0 auto; }
.category-section { margin-bottom: 69px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
.section-heading h2 { margin: 8px 0 0; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.045em; }
.section-heading > .text-link { padding-bottom: 4px; }
.category-list { display: flex; flex-wrap: wrap; gap: 11px; }
.category-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 49px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: #506b65; background: #fff; font-size: 10px; font-weight: 600; transition: all .2s; }
.category-chip:hover { transform: translateY(-2px); border-color: #acd0c2; }
.category-chip--active { border-color: var(--green); color: white; background: var(--green); box-shadow: 0 6px 15px #137b6820; }
.category-chip__icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--green); background: #eaf5f0; font-size: 14px; }
.category-chip--active .category-chip__icon { color: var(--green); background: #d7eee4; }
.category-chip small { display: grid; min-width: 19px; height: 19px; margin-left: 2px; padding: 0 4px; place-items: center; border-radius: 10px; color: #79918a; background: #f0f5f2; font-size: 8px; }
.category-chip--active small { color: #28675a; background: #d7eee4; }

.catalog-section { margin-bottom: 77px; }
.section-heading--catalog { align-items: center; margin-bottom: 23px; }
.section-heading--catalog h2 { margin-top: 7px; }
.catalog-count { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.search-form { display: flex; width: min(300px, 42%); height: 43px; border: 1px solid #e1ebe6; border-radius: 9px; background: #fff; }
.search-form:focus-within { border-color: #8bbbab; box-shadow: 0 0 0 3px #137b6812; }
.search-form input { width: 100%; padding: 0 14px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-form input::placeholder { color: #a3b2ac; }
.search-form button { width: 46px; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { overflow: hidden; border: 1px solid #eaf0ed; border-radius: 13px; background: #fff; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 13px 30px #1f4a3e0c; }
.product-card[role="button"] { cursor: pointer; }
.product-card[role="button"]:focus-visible { outline: 3px solid #70b69b; outline-offset: 3px; }
.product-card__image { position: relative; display: grid; height: 180px; place-items: center; overflow: hidden; background: #f5f9f7; }
.product-card__image img { width: 100%; height: 100%; padding: 25px; object-fit: contain; mix-blend-mode: multiply; }
.product-card__category { position: absolute; z-index: 1; top: 11px; left: 11px; max-width: calc(100% - 22px); overflow: hidden; padding: 5px 8px; border-radius: 5px; color: #3c7665; background: #e4f2eb; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-card__body { padding: 14px 14px 12px; }
.product-card__lab { margin: 0 0 5px; color: #85a198; font-size: 9px; font-weight: 600; }
.product-card h3 { min-height: 38px; margin: 0; color: #1d403b; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.45; }
.product-card__description { display: -webkit-box; min-height: 30px; margin: 6px 0 0; overflow: hidden; color: #82938e; font-size: 9px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 11px; border-top: 1px solid #edf2ef; }
.product-card__footer strong { color: var(--green); font-family: Manrope, sans-serif; font-size: 15px; }
.product-card__footer span { color: #b6d6c7; font-size: 17px; }
.empty-state { padding: 57px 20px; border: 1px dashed #cbded4; border-radius: 14px; text-align: center; background: #fff; }
.empty-state__icon { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--green); background: var(--mint); font-size: 25px; }
.empty-state h3 { margin: 14px 0 6px; font-family: Manrope, sans-serif; font-size: 17px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.product-dialog { position: fixed; width: min(820px, calc(100% - 32px)); max-width: 820px; max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #10251f45; }
.product-dialog::backdrop { background: #10251f99; backdrop-filter: blur(3px); }
.product-dialog__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 30px; padding: 32px; }
.product-dialog__image { display: grid; min-height: 300px; max-height: 65vh; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 12px; background: #f5f9f7; }
.product-dialog__image img { display: block; width: 100%; height: 100%; max-height: 65vh; object-fit: contain; }
.product-dialog__close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; color: #45675e; background: #eef5f1; cursor: pointer; font-size: 23px; line-height: 1; }
.product-dialog__category { margin: 0 0 9px; color: #588374; font-size: 11px; font-weight: 700; }
.product-dialog__info h2 { margin: 0; padding-right: 20px; color: #1d403b; font-family: Manrope, sans-serif; font-size: 24px; line-height: 1.35; }
.product-dialog__description { margin: 14px 0 0; color: #71847e; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.product-dialog__price { margin: 20px 0 0; color: var(--green); font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }

.account-banner { display: flex; align-items: center; gap: 18px; width: min(1200px, 90%); min-height: 144px; margin: 0 auto 55px; padding: 24px 36px; border-radius: 14px; color: white; background: linear-gradient(110deg,#155e52,#24866d); }
.account-banner__icon { display: grid; width: 49px; height: 49px; flex: 0 0 auto; place-items: center; border: 1px solid #ffffff50; border-radius: 14px; color: white; font-size: 28px; }
.account-banner .eyebrow { color: #b8e3d1; }
.account-banner h2 { margin: 6px 0 4px; font-family: Manrope, sans-serif; font-size: 18px; letter-spacing: -.025em; }
.account-banner p { margin: 0; color: #cee9dc; font-size: 10px; }
.account-banner > .button { margin-left: auto; white-space: nowrap; }
.button--light { color: #236657; background: white; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1200px, 90%); min-height: 92px; margin: auto; border-top: 1px solid var(--line); }
.brand--footer .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
.brand--footer .brand__mark::before { width: 16px; height: 5px; }
.brand--footer .brand__mark::after { width: 5px; height: 16px; }
.brand--footer .brand__text strong { font-size: 10px; }
.brand--footer .brand__text small { font-size: 7px; }
.site-footer > p, .site-footer > span { color: #93a29d; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 900px) {
    .main-nav { gap: 18px; margin-left: 0; }
    .hero { min-height: 400px; padding: 42px 5%; }
    .hero-art { transform: scale(.9); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .announcement { padding: 0 5%; font-size: 8px; }
    .announcement__right { font-size: 8px; }
    .site-header { min-height: 72px; gap: 8px; }
    .brand { gap: 8px; }
    .brand__mark { width: 35px; height: 35px; border-radius: 10px; }
    .brand__text strong { font-size: 10px; }
    .brand__text small { font-size: 7px; }
    .main-nav { display: none; }
    .button--admin { min-height: 37px; padding: 0 10px; font-size: 9px; }
    .hero { grid-template-columns: 1fr; min-height: 0; margin-bottom: 45px; padding: 34px 7% 15px; }
    .hero h1 { font-size: 39px; }
    .hero__copy > p { font-size: 12px; }
    .hero__trust { gap: 10px 17px; margin-top: 22px; }
    .hero-art { width: 100%; height: 260px; margin-top: 7px; transform: scale(.84); transform-origin: top center; }
    .hero-art__halo { width: 260px; height: 260px; }
    .capsule--one { left: -12%; }
    .hero-art__note { right: -4%; }
    .hero__number { right: 10px; bottom: 5px; font-size: 53px; }
    .category-section, .catalog-section, .account-banner, .site-footer { width: 90%; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 21px; }
    .section-heading > .text-link { max-width: 120px; padding-top: 10px; font-size: 9px; text-align: right; }
    .category-section { margin-bottom: 48px; }
    .category-list { gap: 8px; }
    .category-chip { min-height: 43px; gap: 6px; padding: 0 9px; font-size: 9px; }
    .category-chip__icon { width: 21px; height: 21px; }
    .category-chip small { min-width: 16px; height: 16px; font-size: 7px; }
    .section-heading--catalog { display: grid; grid-template-columns: 1fr; gap: 14px; }
    .search-form { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card__image { height: 145px; }
    .product-card__image img { padding: 20px; }
    .product-card__body { padding: 11px 10px; }
    .product-card h3 { min-height: 37px; font-size: 11px; }
    .product-card__footer strong { font-size: 13px; }
    .product-dialog { width: calc(100% - 24px); max-height: 92vh; border-radius: 14px; }
    .product-dialog__content { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
    .product-dialog__image { width: 100%; min-height: 0; max-height: 42vh; }
    .product-dialog__image img { max-height: 42vh; }
    .product-dialog__info h2 { font-size: 19px; }
    .product-dialog__description { font-size: 12px; }
    .account-banner { flex-wrap: wrap; gap: 13px; padding: 20px; }
    .account-banner__icon { width: 40px; height: 40px; }
    .account-banner > div:nth-child(2) { flex: 1; }
    .account-banner h2 { font-size: 15px; }
    .account-banner > .button { margin-left: 53px; }
    .site-footer { flex-wrap: wrap; justify-content: flex-start; padding: 17px 0; }
    .site-footer > p { flex: 1 1 100%; order: 2; margin: 0; }
    .site-footer > span { margin-left: auto; }
}
@media (max-width: 360px) {
    .announcement {
        gap: 6px;
        padding: 0 4%;
        font-size: 7px;
        letter-spacing: .07em;
        white-space: nowrap;
    }
    .announcement__right { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

body { font-size: 16px; }
.announcement { font-size: 12px; }
.announcement__right { font-size: 12px; }
.brand__text strong { font-size: 16px; }
.brand__text small { font-size: 11px; }
.main-nav a { font-size: 15px; }
.button { font-size: 14px; }
.eyebrow { font-size: 12px; }
.hero__copy > p { font-size: 17px; }
.hero__login, .text-link { font-size: 14px; }
.hero__trust { font-size: 13px; }
.section-heading > .text-link { font-size: 14px; }
.category-chip { font-size: 14px; }
.category-chip small { font-size: 11px; }
.catalog-count { font-size: 14px; }
.search-form input { font-size: 16px; }
.product-card__category { font-size: 11px; }
.product-card__lab { font-size: 12px; }
.product-card h3 { min-height: 48px; font-size: 16px; }
.product-card__description { min-height: 44px; font-size: 13px; line-height: 1.65; -webkit-line-clamp: 3; }
.product-card__footer strong { font-size: 17px; }
.product-dialog__category { font-size: 14px; }
.product-dialog__info h2 { font-size: 28px; }
.product-dialog__description { font-size: 17px; }
.product-dialog__price { font-size: 23px; }
.empty-state p { font-size: 15px; }
.account-banner h2 { font-size: 22px; }
.account-banner p { font-size: 14px; }
.site-footer > p, .site-footer > span { font-size: 12px; }
.brand--footer .brand__text strong { font-size: 13px; }
.brand--footer .brand__text small { font-size: 10px; }

@media (max-width: 680px) {
    .announcement { font-size: 11px; }
    .announcement__right { font-size: 11px; }
    .brand__text strong { font-size: 13px; }
    .brand__text small { font-size: 9px; }
    .button--admin { font-size: 12px; }
    .hero__copy > p { font-size: 16px; }
    .hero__trust { font-size: 12px; }
    .section-heading > .text-link { max-width: 150px; font-size: 12px; }
    .category-chip { font-size: 13px; }
    .category-chip small { font-size: 10px; }
    .product-card h3 { min-height: 48px; font-size: 15px; }
    .product-card__description { min-height: 42px; font-size: 12px; }
    .product-card__footer strong { font-size: 16px; }
    .product-dialog__info h2 { font-size: 23px; }
    .product-dialog__description { font-size: 16px; }
    .account-banner h2 { font-size: 20px; }
    .account-banner p { font-size: 14px; line-height: 1.5; }
}

@media (max-width: 360px) {
    .announcement { font-size: 10px; letter-spacing: .04em; white-space: normal; }
}
