:root {
  --green: #14568f; --green-d: #0e3d68; --lime: #f5a623; --orange: #e2571e;
  --ink: #232830; --ink-soft: #5b636e; --line: #e0e5ec; --bg-alt: #f4f7fb;
  --radius: 6px; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.3rem; } h2 { font-size: 1.65rem; color: var(--green-d); } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; } img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); } a:hover, a:focus-visible { color: var(--orange); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 10px rgba(14,61,104,.1); }
.topbar { background: var(--green-d); color: #c6d8ea; font-size: .82rem; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; align-items: center; min-height: 32px; }
.topbar p { margin: 0; } .topbar a { color: #fff; text-decoration: none; margin-right: 16px; font-weight: 600; }
.topbar a:hover { color: var(--lime); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; flex-direction: column; margin-right: auto; text-decoration: none; line-height: 1.2; }
.brand__name { font-size: 1.35rem; font-weight: 700; color: var(--green-d); }
.brand__sub { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--bg-alt); color: var(--green-d); }
.nav-toggle { display: none; width: 46px; height: 42px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.nav-toggle__box { display: block; position: relative; width: 22px; height: 2px; margin: 0 auto; background: var(--green-d); }
.nav-toggle__box::before, .nav-toggle__box::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--green-d); }
.nav-toggle__box::before { top: -7px; } .nav-toggle__box::after { top: 7px; }

.hero { position: relative; background: #0e2338; }
.slider { position: relative; }
.slide { margin: 0; display: none; } .slide.is-active { display: block; }
.slide img { width: 100%; max-height: 430px; object-fit: cover; opacity: .58; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(14,35,56,.55); color: #fff; font-size: 1.6rem; line-height: 1; }
.slider__nav:hover { background: var(--green); }
.slider__nav--prev { left: 16px; } .slider__nav--next { right: 16px; }
.hero__panel { position: absolute; inset: auto 0 0 0; padding: 30px 0 28px; background: linear-gradient(180deg, rgba(14,35,56,0), rgba(14,35,56,.92) 45%); color: #fff; }
.hero h1 { color: #fff; max-width: 18ch; } .hero__lead { max-width: 58ch; color: #cddced; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.btn--primary { background: var(--orange); color: #fff; } .btn--primary:hover { background: #ff8f34; color: #fff; }
.btn--ghost { border: 2px solid rgba(255,255,255,.6); color: #fff; padding: 11px 24px; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }

.section { padding: 48px 0; } .section--alt { background: var(--bg-alt); }
.section__title { position: relative; padding-bottom: 12px; margin-bottom: 24px; }
.section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--lime); }
.prose { max-width: 84ch; } .prose p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards > * { min-width: 0; }
.card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 165 / 115; object-fit: cover; background: #eef2f7; }
.card figcaption { padding: 14px 16px; }
.card h3 { color: var(--green-d); font-size: 1rem; }
.card p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

.insects { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.insects li { min-width: 0; text-align: center; }
.insects img { width: 100%; aspect-ratio: 164 / 115; object-fit: cover; border-radius: var(--radius); background: #eef2f7; margin-bottom: 8px; }
.insects span { font-size: .88rem; font-weight: 600; color: var(--green-d); }

.whys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { background: #fff; border-left: 4px solid var(--lime); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.why h3 { color: var(--green-d); } .why p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.post h3 { color: var(--green-d); font-size: 1.02rem; }
.post p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

.section--contact { background: #0e2338; color: #c5d6e6; }
.section--contact .section__title { color: #fff; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact__box { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.contact__box h3 { color: var(--lime); }
.contact address { font-style: normal; }
.contact a { color: #fff; font-weight: 600; } .contact a:hover { color: var(--lime); }
.contact p:last-child { margin-bottom: 0; }

.site-footer { background: #0a1a2a; color: #8fa0b3; font-size: .92rem; padding-top: 34px; }
.footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; padding-bottom: 22px; }
.footer__name { color: #fff; font-weight: 700; }
.footer__head { color: #fff; font-weight: 600; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin-bottom: 6px; }
.site-footer a { color: #8fa0b3; text-decoration: none; } .site-footer a:hover { color: var(--lime); }
.footer__bottom { border-top: 1px solid #16304a; padding: 14px 0; }
.footer__bottom p { margin: 0; font-size: .84rem; }

@media (max-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } .insects { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .whys { grid-template-columns: 1fr; } .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; }
  .section { padding: 34px 0; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; order: 3; padding-bottom: 12px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: 11px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header__in { flex-wrap: wrap; }
  .slide img { max-height: 260px; } .hero__panel { position: static; background: #0e2338; }
  .cards, .posts, .contact, .footer__in { grid-template-columns: 1fr; }
  .insects { grid-template-columns: repeat(2, 1fr); }
  .topbar__in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* каталог категорий */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.cats > * { min-width: 0; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cat h3 { color: var(--green-d); padding-bottom: 9px; margin-bottom: .7em; border-bottom: 2px solid var(--lime); }
.cat ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--ink-soft); }
.cat li { position: relative; padding: 4px 0 4px 18px; }
.cat li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* галерея превью товаров */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery > * { min-width: 0; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

@media (max-width: 1080px) { .cats { grid-template-columns: repeat(2, 1fr); } .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .cats { grid-template-columns: 1fr; } .gallery { grid-template-columns: repeat(3, 1fr); } }
