/* ============================================================
   RM Publishing Service — Design System
   ============================================================ */
:root {
  --ink: #0f1b2d;
  --ink-soft: #3c4a5e;
  --muted: #6b7a90;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --brand: #a07219;
  --brand-dark: #7e580f;
  --brand-soft: #f7efdd;
  --accent: #16303f;
  --accent-dark: #0f2430;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow-md: 0 8px 30px rgba(15, 27, 45, .10);
  --shadow-lg: 0 20px 50px rgba(15, 27, 45, .14);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(160, 114, 25, .32); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 10px 24px rgba(160, 114, 25, .4); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: #f0f5ff; color: var(--brand-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { height: 68px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li > a {
  display: block; padding: 9px 15px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--brand); background: var(--brand-soft); }

.has-dropdown { position: relative; }
.dropdown-toggle::after { content: "▾"; font-size: .7rem; margin-left: 5px; opacity: .7; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--brand); }

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

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(20, 184, 166, .14), transparent 60%),
              radial-gradient(900px 500px at 0% 0%, rgba(160, 114, 25, .12), transparent 55%),
              var(--bg-soft);
  padding: 92px 0 84px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p { font-size: 1.15rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card .pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.hero-stats .stat { background: var(--bg-soft); border-radius: 12px; padding: 18px; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.hero-stats .lbl { font-size: .85rem; color: var(--muted); }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-band .num { font-size: 2.4rem; font-weight: 800; color: var(--brand); }
.stat-band .lbl { color: var(--muted); font-weight: 500; font-size: .95rem; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
.logo-strip img { height: 42px; width: auto; opacity: .55; filter: grayscale(100%); transition: opacity .2s ease, filter .2s ease; }
.logo-strip img:hover { opacity: 1; filter: none; }
.strip-title { text-align: center; color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 30px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d2ddee; }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 14px; font-size: .96rem; }
.card .more { font-weight: 600; font-size: .9rem; color: var(--brand); }
.card .more::after { content: " →"; }

.card--link { display: flex; flex-direction: column; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 72px 0 64px; text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { color: rgba(255, 255, 255, .85); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.media-box {
  border-radius: 18px; min-height: 320px;
  background: linear-gradient(135deg, var(--brand-soft), #efe2c4);
  display: grid; place-items: center; color: var(--brand-dark);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.media-box .big-ico { font-size: 5rem; opacity: .85; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 22px; padding: 54px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .ri {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 42px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem;
}
.info-row .rt strong { display: block; color: var(--ink); font-size: .95rem; }
.info-row .rt span { color: var(--muted); font-size: .92rem; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(160, 114, 25, .14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="file"] { padding: 9px; background: var(--bg-soft); cursor: pointer; }

/* Captcha */
.captcha {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px;
}
.captcha .q {
  font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: .04em;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; user-select: none;
}
.captcha input { width: 90px; }
.captcha .refresh {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px;
  cursor: pointer; font-size: 1.05rem; color: var(--muted); transition: .15s;
}
.captcha .refresh:hover { color: var(--brand); border-color: var(--brand); }

.form-note { font-size: .82rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; margin-bottom: 16px; display: none; }
.form-alert.error { display: block; background: #fdecec; color: #b42318; border: 1px solid #f7cbc8; }
.form-alert.success { display: block; background: #e7f7ee; color: #0a7a3f; border: 1px solid #bce8ce; }

.field .err { display: block; color: #b42318; font-size: .78rem; margin-top: 4px; min-height: 1em; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
}
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--brand); font-size: .9rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1626; color: #c6d1e0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer a { color: #c6d1e0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .brand { background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand .brand-logo { height: 60px; }
.footer-brand p { color: #9fb0c6; font-size: .92rem; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; color: #9fb0c6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: #8b9cb3;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 12px; display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 14px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: auto;
  }
  .nav-actions .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
}
