:root {
  --ink: #0b1220;
  --text: #1f2937;
  --muted: #5b6474;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --hero: #eaf0f6;
  --accent: #1f4fd1;
  --accent-dark: #173c9f;
  --accent-soft: #e6edfc;
  --radius: 14px;
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 16px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav .nav-cta { background: var(--accent); color: #fff; }
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--accent); cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: #c8d1dc; }

/* sections */
.hero { background: linear-gradient(180deg, var(--hero), #f6f9fc); padding: clamp(56px, 9vw, 110px) 0; border-bottom: 1px solid var(--line); }
.hero-text { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-tight { padding-top: 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service h3 { font-size: 18px; }
.service ul { margin: 0; padding-left: 18px; color: var(--text); }
.service li { margin: 6px 0; }

.about { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photo img { border-radius: 20px; width: 100%; max-width: 440px; margin-left: auto; box-shadow: 0 20px 50px -20px rgba(11,18,32,.35); }

.post-card { display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; position: relative; }
.post-card:hover { border-color: #b8c6dc; box-shadow: 0 10px 30px -18px rgba(11,18,32,.35); }
.post-card time { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 18px; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }

.contacts { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list li > .icon { width: 42px; height: 42px; padding: 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.contact-list span span { display: block; font-size: 13px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-side { display: grid; gap: 20px; }
.channel .eyebrow { margin-bottom: 8px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 12px 0 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #12703a; font-weight: 600; }
.form-status.err { color: #b42318; font-weight: 600; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* page head + article */
.page-head { background: var(--hero); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.post-meta { color: var(--muted); font-size: 15px; margin: 0; }
.post-meta a { color: var(--muted); }

.prose { padding-top: 36px; padding-bottom: 12px; font-size: 18px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 27px); margin-top: 1.7em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose h4 { font-size: 18px; margin-top: 1.3em; }
.prose ul { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); }

.contact-box { margin: 40px 0 28px; padding: 28px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #cdd9f6; }
.contact-box h2 { font-size: 22px; margin-bottom: .4em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-bottom: 48px; }

/* footer */
.site-footer { background: var(--ink); color: #c9d2de; padding: 44px 0 28px; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-name { font-family: var(--serif); color: #fff; font-weight: 700; margin-bottom: 6px; }
.site-footer .muted { color: #93a0b2; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: #e4e9f0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #263044; margin-top: 28px; padding-top: 20px; font-size: 14px; }

@media (max-width: 860px) {
  .about, .contacts { grid-template-columns: 1fr; }
  .about-photo img { margin: 0 auto; max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; }
  .brand-name { font-size: 15px; }
  .nav { justify-content: flex-start; gap: 2px; margin-left: -10px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  html { scroll-padding-top: 120px; }
  .prose { font-size: 17px; }
  .contact-box { padding: 22px; }
  .btn { padding: 11px 18px; font-size: 15px; }
}
