:root {
  --ink: #10251f;
  --muted: #64716c;
  --green: #0d2e25;
  --green-soft: #173f34;
  --orange: #e9a14a;
  --orange-hover: #f0ae5e;
  --cream: #f4f0eb;
  --line: #dfe5e1;
  --white: #fff;
  --shadow: 0 20px 60px rgba(13, 46, 37, .1);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 18px; color: #fff; background: var(--green); border-radius: 9px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(16,37,31,.09); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark { width: 48px; height: 48px; display: grid; place-content: center; color: var(--green); background: var(--orange); border-radius: 14px; font-size: 11px; line-height: .85; font-weight: 900; letter-spacing: -.5px; }
.brand__name { font-size: 23px; font-weight: 800; letter-spacing: -.7px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { position: relative; padding: 28px 0 25px; color: #3e4b47; font-size: 14px; font-weight: 650; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 19px; left: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.header-phone { display: flex; flex-direction: column; gap: 3px; margin-left: 16px; text-align: right; }
.header-phone span { font-size: 16px; font-weight: 800; }
.header-phone small { color: var(--muted); font-size: 11px; }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 10px; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 12px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 3px; }

.blog-hero { padding: 54px 0 60px; overflow: hidden; background: linear-gradient(135deg, #f5f1ec 0%, #faf9f7 58%, #eef2ef 100%); }
.blog-hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr); align-items: center; gap: 68px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #7b684f; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--orange); }
.eyebrow--light { color: #c9d5d0; }
.blog-hero h1 { max-width: 650px; margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.blog-hero__lead { max-width: 640px; margin: 26px 0 0; color: #53615c; font-size: 19px; line-height: 1.55; }
.blog-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; color: #50605a; font-size: 14px; }
.blog-hero__facts span { display: flex; align-items: baseline; gap: 6px; }
.blog-hero__facts strong { color: var(--green); font-size: 18px; }
.blog-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--accent { color: var(--green); background: var(--orange); box-shadow: 0 12px 30px rgba(233,161,74,.24); }
.button--accent:hover { background: var(--orange-hover); }
.button--ghost { color: var(--green); background: rgba(255,255,255,.64); border: 1px solid rgba(13,46,37,.18); }
.button--dark { color: #fff; background: var(--green); }
.button--wide { width: 100%; }
.blog-hero__media { position: relative; margin: 0; }
.blog-hero__media::before { content: ""; position: absolute; z-index: 0; inset: -26px 42% 22% -36px; background: var(--orange); border-radius: 34px; transform: rotate(-3deg); opacity: .88; }
.blog-hero__media img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.blog-hero__media figcaption { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; background: rgba(9,31,25,.84); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 12px; backdrop-filter: blur(10px); }
.live-dot { width: 7px; height: 7px; background: #67d391; border-radius: 50%; box-shadow: 0 0 0 4px rgba(103,211,145,.16); }

.article-browser { padding: 88px 0 104px; scroll-margin-top: 78px; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 60px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p { max-width: 500px; margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.article-tools { margin-top: 38px; padding: 20px; background: #f4f6f4; border: 1px solid #e5e9e6; border-radius: 22px; }
.article-search { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: #fff; border: 1px solid #d8dfda; border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.article-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(13,46,37,.08); }
.article-search svg { width: 22px; height: 22px; fill: none; stroke: #78857f; stroke-width: 2; }
.article-search input { width: 100%; height: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 16px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.filter-chip { min-height: 42px; padding: 0 15px; color: #46544f; background: #fff; border: 1px solid #d8dfda; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: .18s ease; }
.filter-chip:hover { border-color: #8fa098; }
.filter-chip.is-active { color: #fff; background: var(--green); border-color: var(--green); }
.filter-chip span { margin-left: 4px; opacity: .66; }
.article-result { margin: 24px 2px 16px; color: var(--muted); font-size: 13px; }
.article-result span { color: var(--ink); font-weight: 800; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.blog-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 22px 50px rgba(13,46,37,.12); }
.blog-card[hidden] { display: none; }
.blog-card__image { position: relative; display: block; overflow: hidden; background: #e8ece9; }
.blog-card__image img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__image img { transform: scale(1.035); }
.blog-card__tag { position: absolute; top: 14px; left: 14px; padding: 8px 10px; color: #fff; background: rgba(9,35,28,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; font-size: 11px; font-weight: 750; backdrop-filter: blur(8px); }
.blog-card__body { display: flex; flex-direction: column; min-height: 320px; padding: 22px 22px 20px; }
.blog-card__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: #7b8883; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.blog-card h2 { margin: 0; font-size: 21px; line-height: 1.22; letter-spacing: -.025em; }
.blog-card h2 a:hover { color: #2e5f50; }
.blog-card p { display: -webkit-box; overflow: hidden; margin: 13px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.blog-card__more { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 17px; color: var(--green); border-top: 1px solid #ebefec; font-size: 13px; font-weight: 800; }
.blog-card__more span { font-size: 20px; transition: transform .2s ease; }
.blog-card:hover .blog-card__more span { transform: translateX(4px); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 42px; }
.load-more-wrap [hidden] { display: none; }
.empty-state { padding: 60px 24px; text-align: center; background: #f5f7f5; border-radius: 24px; }
.empty-state h3 { margin: 0; font-size: 28px; }
.empty-state p { margin: 10px 0 24px; color: var(--muted); }
.empty-state[hidden] { display: none; }

.expert-cta { padding: 86px 0; color: #fff; background: var(--green); scroll-margin-top: 78px; }
.expert-cta__grid { display: grid; grid-template-columns: 1.05fr .75fr; align-items: center; gap: 90px; }
.expert-cta h2 { max-width: 650px; margin: 0; font-size: clamp(38px, 4vw, 56px); line-height: 1.02; letter-spacing: -.045em; }
.expert-cta__copy > p { max-width: 650px; margin: 22px 0; color: #c8d3cf; font-size: 17px; line-height: 1.6; }
.expert-cta ul { display: grid; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; color: #e0e8e4; }
.expert-cta li { position: relative; padding-left: 28px; }
.expert-cta li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.lead-form { padding: 32px; color: var(--ink); background: #fff; border-radius: 24px; box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.lead-form h3 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.lead-form > p { margin: 7px 0 22px; color: var(--muted); }
.lead-form > label:not(.consent) { display: grid; gap: 7px; margin-top: 13px; color: #4c5a55; font-size: 12px; font-weight: 700; }
.lead-form input[type="text"], .lead-form input[type="tel"] { width: 100%; height: 54px; padding: 0 15px; color: var(--ink); background: #f7f8f7; border: 1px solid #dbe1dd; border-radius: 12px; outline: none; }
.lead-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(13,46,37,.07); }
.lead-form .button { margin-top: 16px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: #77827e; font-size: 11px; line-height: 1.4; }
.consent input { margin-top: 2px; }
.consent a { text-decoration: underline; }
.form-status { display: none; margin-top: 12px; font-size: 13px; line-height: 1.4; }
.form-status.success { color: #17683b; }
.form-status.error { color: #b92929; }

.site-footer { padding: 68px 0 24px; color: #dce5e1; background: #071b15; }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr .65fr .9fr .9fr; gap: 56px; }
.brand--footer { color: #fff; }
.footer-about p { max-width: 390px; margin: 22px 0; color: #9fb0aa; font-size: 14px; line-height: 1.65; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { padding: 7px 9px; color: #b9c8c2; border: 1px solid #264139; border-radius: 8px; font-size: 11px; }
.site-footer h2 { margin: 4px 0 22px; color: #fff; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.site-footer__grid > div:not(.footer-about) { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.site-footer__grid > div:not(.footer-about) > a:not(.footer-phone) { color: #9fb0aa; font-size: 13px; }
.site-footer__grid a:hover { color: #fff !important; }
.footer-phone { color: #fff; font-size: 20px; font-weight: 800; }
.footer-contact p { margin: 2px 0; color: #9fb0aa; font-size: 13px; line-height: 1.6; }
.footer-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid #28453b; border-radius: 10px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 52px; padding-top: 20px; color: #71867d; border-top: 1px solid #203a31; font-size: 11px; }

@media (max-width: 1060px) {
  .header-phone small { display: none; }
  .main-nav { gap: 17px; }
  .blog-hero__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card__image img { height: 270px; }
  .expert-cta__grid { gap: 50px; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 680px); }
  .site-header__inner { min-height: 68px; }
  .brand__mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand__name { font-size: 21px; }
  .menu-toggle { display: block; }
  .header-phone { margin-left: 0; }
  .header-phone span { font-size: 0; }
  .header-phone span::before { content: "Позвонить"; font-size: 13px; font-weight: 800; }
  .main-nav { position: fixed; z-index: 99; top: 68px; right: 0; left: 0; display: grid; gap: 0; padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(13,46,37,.12); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .25s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid #edf0ee; }
  .main-nav a::after { display: none; }
  .blog-hero { padding: 38px 0 44px; }
  .blog-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .blog-hero__media { order: -1; }
  .blog-hero__media img { aspect-ratio: 16 / 11; border-radius: 22px; }
  .blog-hero__media::before { display: none; }
  .blog-hero h1 { font-size: clamp(40px, 11vw, 58px); }
  .blog-hero__lead { font-size: 17px; }
  .article-browser { padding: 62px 0 74px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .expert-cta { padding: 62px 0; }
  .expert-cta__grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 42px 30px; }
  .footer-about { grid-column: 1 / 3; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 24px); }
  .header-phone { display: none; }
  .blog-hero__media figcaption { right: 10px; bottom: 10px; font-size: 10px; }
  .blog-hero h1 { letter-spacing: -.05em; }
  .blog-hero__lead { margin-top: 20px; }
  .blog-hero__facts { display: grid; gap: 8px; }
  .blog-hero__actions { display: grid; }
  .button { width: 100%; }
  .article-tools { margin-top: 28px; padding: 12px; border-radius: 17px; }
  .article-search { height: 52px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card { border-radius: 18px; }
  .blog-card__image img { height: 244px; }
  .blog-card__body { min-height: 0; padding: 19px; }
  .blog-card h2 { font-size: 20px; }
  .blog-card__meta { font-size: 10px; }
  .lead-form { padding: 24px 18px; border-radius: 20px; }
  .site-footer { padding-top: 54px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-about, .footer-contact { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
