/* ==========================================================================
   Бизнис Партнер — biznispartner.mk
   ========================================================================== */

:root {
  --navy-900: #0a1526;
  --navy-800: #0d1b2a;
  --navy-700: #14263a;
  --navy-600: #1c3b52;
  --ink: #16212e;
  --ink-soft: #4a5a6b;
  --ink-muted: #6b7a8a;
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-muted: #f6f8fb;
  --amber: #f2a541;
  --amber-dark: #d98a1f;
  --teal: #2a9d8f;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 2px 8px rgba(13, 27, 42, .05);
  --shadow: 0 4px 12px rgba(13, 27, 42, .07), 0 16px 40px rgba(13, 27, 42, .08);
  --shadow-lg: 0 10px 30px rgba(13, 27, 42, .12), 0 30px 70px rgba(13, 27, 42, .12);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff; padding: 12px 18px; z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font-size: 1.06rem; font-weight: 500; letter-spacing: -.02em; color: var(--navy-800); }
.brand-text strong { font-weight: 800; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  padding: 9px 13px; border-radius: 999px; transition: color .18s, background-color .18s;
}
.primary-nav a:hover { color: var(--navy-800); background: var(--bg-muted); }
.primary-nav .nav-cta {
  background: var(--navy-800); color: #fff; font-weight: 600; margin-left: 6px; padding: 10px 20px;
}
.primary-nav .nav-cta:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--amber); color: #23180a; box-shadow: 0 6px 18px rgba(242, 165, 65, .35); }
.btn-primary:hover { background: var(--amber-dark); box-shadow: 0 8px 22px rgba(242, 165, 65, .45); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: rgba(13, 27, 42, .22); }
.btn-ghost:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.link-arrow { color: var(--navy-800); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.link-arrow:hover { color: var(--amber-dark); }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(242, 165, 65, .16), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(42, 157, 143, .10), transparent 60%),
    var(--bg);
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber-dark); margin: 0 0 14px;
}
.section-dark .eyebrow { color: var(--amber); }

.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 66%, rgba(242, 165, 65, .42) 66%);
  padding: 0 2px;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li {
  position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .97rem;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(42, 157, 143, .14);
  box-shadow: inset 0 0 0 1.5px rgba(42, 157, 143, .45);
}
.hero-points li::after {
  content: ""; position: absolute; left: 5.5px; top: .78em;
  width: 7px; height: 4px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.hero-visual img { width: 100%; filter: drop-shadow(0 24px 50px rgba(13, 27, 42, .14)); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-muted { background: var(--bg-muted); border-block: 1px solid var(--line-soft); }
.section-dark { background: var(--navy-800); color: #e7edf4; }
.section-dark h2 { color: #fff; }

.section-head { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 52px); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section-dark .section-sub { color: #a9bacd; }

.note { margin-top: 32px; color: var(--ink-soft); font-size: .97rem; }
.note a { color: var(--navy-800); font-weight: 600; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3dde8; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }

.card-plain { background: #fff; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(242, 165, 65, .18), rgba(42, 157, 143, .14));
  color: var(--navy-800);
}
.card-icon svg { width: 24px; height: 24px; }

.card-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.card-list li {
  position: relative; padding-left: 18px; font-size: .91rem; color: var(--ink-muted);
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}

.card-accent {
  background: linear-gradient(160deg, #fffaf1, #fff);
  border-color: rgba(242, 165, 65, .45);
}
.card-accent p:last-child { margin-top: 14px; }

/* ---------------------------------------------------------------- work / примери */
.work {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-media { display: block; background: #eef2f7; border-bottom: 1px solid var(--line); }
.work-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-body { padding: 22px 24px 26px; }
.work-body h3 { margin-bottom: 8px; }
.work-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--teal);
  background: rgba(42, 157, 143, .1); padding: 4px 10px; border-radius: 999px; margin: 0 0 12px;
}

/* ---------------------------------------------------------------- steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step { position: relative; padding-top: 8px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: -22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-copy p { color: #b9c8d8; }
.about-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 28px; color: #b9c8d8; font-size: .98rem; }
.about-list li strong { color: #fff; font-weight: 600; }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 14px; border-radius: 4px;
  background: rgba(242, 165, 65, .25); box-shadow: inset 0 0 0 1.5px var(--amber);
}

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #cfdae6; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 600; font-size: 1.02rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--bg-muted); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------------------------------------------------------------- contact */
.section-contact {
  background:
    radial-gradient(800px 420px at 12% 0%, rgba(42, 157, 143, .12), transparent 60%),
    radial-gradient(700px 420px at 92% 100%, rgba(242, 165, 65, .16), transparent 60%),
    var(--bg-muted);
  border-top: 1px solid var(--line-soft);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }

.contact-direct {
  margin-top: 32px; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 6px; }
.contact-email {
  display: inline-block; font-size: 1.08rem; font-weight: 700; color: var(--navy-800);
  text-decoration: none; border-bottom: 2px solid var(--amber); margin-bottom: 16px; word-break: break-all;
}
.contact-email:hover { color: var(--amber-dark); }
.contact-direct .btn { display: block; width: max-content; }
.copy-status { margin: 10px 0 0; font-size: .85rem; color: var(--teal); font-weight: 600; min-height: 1.2em; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; border: 0; padding: 0; }
.field label, .field legend {
  display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; padding: 0;
}
.req { color: var(--amber-dark); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fdfefe; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 165, 65, .2);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #d1495b; box-shadow: 0 0 0 3px rgba(209, 73, 91, .14);
}
.field textarea { resize: vertical; min-height: 120px; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.checks label {
  display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 400;
  color: var(--ink-soft); margin: 0; cursor: pointer;
}
.checks input { width: 17px; height: 17px; accent-color: var(--amber-dark); flex: none; }

.form-note { font-size: .85rem; color: var(--ink-muted); margin: 14px 0 0; text-align: center; }
.form-note.is-error { color: #d1495b; font-weight: 600; }
.form-note.is-ok { color: var(--teal); font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #93a6ba; padding: 52px 0 28px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { color: #fff; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.footer-sub { margin: 2px 0 0; font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-nav a {
  text-decoration: none; font-size: .92rem; padding: 8px 12px; border-radius: 8px; transition: color .18s, background .18s;
}
.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 22px; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 14px; border-radius: 10px; font-size: 1rem; }
  .primary-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .checks { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  .site-header, .nav-toggle, .hero-actions, .contact-form, .site-footer { display: none; }
  body { font-size: 12pt; }
}
