/* ==========================================================================
   WPDoctor — design system + landing styles
   ========================================================================== */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-deep: #0b1020;
  --primary: #4f46e5;
  --primary-dk: #3730a3;
  --primary-soft: #eef0fe;
  --accent: #10b981;
  --accent-dk: #059669;
  --accent-soft: #e7f8f1;
  --warn: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(40, 38, 110, .18);
  --container: 1180px;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #6366f1 100%);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, .h-font {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
}

a { color: var(--primary); text-decoration: none; }
img, svg { max-width: 100%; }
p { margin: 0 0 1rem; }

.wd-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.wd-section { padding: clamp(56px, 8vw, 60px) 0; }
.wd-section--soft { background: var(--bg-soft); }
.wd-section--deep { background: var(--bg-deep); color: #cbd5e1; }
.wd-section--deep h2, .wd-section--deep h3 { color: #fff; }

.wd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.wd-section--deep .wd-eyebrow { color: #c7d2fe; background: rgba(99,102,241,.18); }

.wd-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.wd-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.wd-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.wd-section--deep .wd-head p { color: #94a3b8; }

/* Buttons ----------------------------------------------------------------- */
.wd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center; line-height: 1;
}
.wd-btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px rgba(79,70,229,.32); }
.wd-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79,70,229,.42); color: #fff; }
.wd-btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(16,185,129,.3); }
.wd-btn--accent:hover { transform: translateY(-2px); background: var(--accent-dk); color: #fff; }
.wd-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.wd-btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.wd-btn--lg { padding: 18px 36px; font-size: 1.08rem; }
.wd-btn--block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.wd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.wd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 72px; }
.wd-logo { display: inline-flex; align-items: center; gap: 12px; font-family: 'Manrope'; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.wd-logo__text { display: inline-flex; align-items: baseline; }
.wd-logo__mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--gradient); color: #fff; box-shadow: var(--shadow-sm); }
.wd-logo__mark svg { width: 27px; height: 27px; }
.wd-logo b { color: var(--primary); }
.wd-nav { display: flex; align-items: center; gap: 26px; }
.wd-nav a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.wd-nav a:hover { color: var(--primary); }
.wd-header__cta { display: flex; align-items: center; gap: 16px; }
.wd-header__phone { font-weight: 700; font-family: 'Manrope'; color: var(--ink); white-space: nowrap; }
.wd-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.wd-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }
.wd-nav__cta { display: none; }

/* Hero -------------------------------------------------------------------- */
.wd-hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.wd-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 85% -10%, rgba(124,58,237,.20), transparent 62%),
    radial-gradient(45% 50% at 5% 8%, rgba(16,185,129,.16), transparent 62%);
  pointer-events: none;
}
.wd-hero__title { position: relative; text-align: center; padding-top: clamp(48px, 7vw, 88px); margin: 0; }
.wd-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 7vw, 88px); }
.wd-hero__text { text-align: center; }
.wd-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.wd-hero h1 .hl { color: var(--primary); }
.wd-hero__sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 28px; }
.wd-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 30px; }
.wd-trust { display: grid; gap: 12px; }
.wd-trust__item { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; color: var(--ink-soft); }
.wd-trust__item svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* Hero card */
.wd-hero__card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.wd-hero__card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wd-hero__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: wd-pulse 2s infinite; }
@keyframes wd-pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.wd-hero__card h3 { font-size: 1.05rem; margin: 0; }
.wd-hero__metric { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.wd-hero__metric:last-child { border-bottom: 0; }
.wd-hero__metric span { color: var(--muted); }
.wd-hero__metric b { font-family: 'Manrope'; font-size: 1.05rem; }
.wd-badge-ok { color: var(--accent-dk); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.wd-badge-warn { color: #b45309; background: #fef3c7; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }

/* Problems ---------------------------------------------------------------- */
.wd-problems__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.wd-problem { flex: 0 1 calc((100% - 32px) / 3); display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.wd-problem__mark { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #fef3c7; color: #b45309; display: grid; place-items: center; font-weight: 800; }
.wd-problem p { margin: 0; font-weight: 500; color: var(--ink-soft); }

/* Services ---------------------------------------------------------------- */
.wd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.wd-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.wd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6dbf5; }
.wd-card__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.wd-card__ico svg { width: 28px; height: 28px; }
.wd-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.wd-card p { color: var(--muted); margin-bottom: 18px; }
.wd-card__link { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.wd-card__link::after { content: "→"; transition: transform .2s; }
.wd-card:hover .wd-card__link::after { transform: translateX(4px); }

/* Steps ------------------------------------------------------------------- */
.wd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; counter-reset: step; }
.wd-step { position: relative; padding: 26px 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.18); border-radius: var(--radius); }
.wd-step__n { font-family: 'Manrope'; font-weight: 800; font-size: 1.6rem; color: #818cf8; margin-bottom: 12px; display: block; }
.wd-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.wd-step p { color: #94a3b8; margin: 0; font-size: .96rem; }

/* Advantages -------------------------------------------------------------- */
.wd-adv { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.wd-adv__item { flex: 0 1 calc((100% - 40px) / 3); display: flex; gap: 16px; align-items: flex-start; }
.wd-adv__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dk); display: grid; place-items: center; }
.wd-adv__ico svg { width: 24px; height: 24px; }
.wd-adv__item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.wd-adv__item p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Tariffs ----------------------------------------------------------------- */
.wd-tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.wd-tariff {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  position: relative;
}
.wd-tariff--featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.wd-tariff__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.wd-tariff h3 { font-size: 1.4rem; margin-bottom: 4px; }
.wd-tariff__tag { color: var(--muted); margin-bottom: 18px; font-size: .94rem; }
.wd-tariff__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.wd-tariff__price span { font-family: 'Manrope'; font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.wd-tariff--featured .wd-tariff__price span { color: var(--primary); }
.wd-tariff__price small { color: var(--muted); font-size: .9rem; }
.wd-tariff ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.wd-tariff li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.wd-tariff li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.wd-tariff .wd-btn { margin-top: auto; }

.wd-extras { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wd-extra { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 20px; box-shadow: var(--shadow-sm); }
.wd-extra__price { font-family: 'Manrope'; font-weight: 800; font-size: 1.05rem; color: var(--accent); margin-bottom: 6px; }
.wd-extra h4 { font-size: 1.05rem; margin-bottom: 6px; }
.wd-extra p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* FAQ --------------------------------------------------------------------- */
.wd-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.wd-faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.wd-faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 24px; font-family: 'Manrope'; font-weight: 700; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wd-faq__q::after { content: "+"; font-size: 1.5rem; color: var(--primary); transition: transform .25s; flex: none; }
.wd-faq__item.is-open .wd-faq__q::after { transform: rotate(45deg); }
.wd-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.wd-faq__a p { padding: 16px 24px 22px; color: var(--muted); margin: 0; }

/* CTA / form -------------------------------------------------------------- */
.wd-cta { position: relative; overflow: hidden; background: var(--gradient); color: #fff; border-radius: 28px; padding: clamp(36px, 5vw, 64px); box-shadow: var(--shadow-lg); }
.wd-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0, rgba(255,255,255,.18), transparent 60%); }
.wd-cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.wd-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.wd-cta p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin: 0; }
.wd-cta__list { display: grid; gap: 12px; margin-top: 22px; }
.wd-cta__list div { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.95); font-weight: 500; }
.wd-cta__list svg { width: 22px; height: 22px; color: #fff; flex: none; }

.wd-form { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); }
.wd-form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.wd-form .wd-form__hint { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; }
.wd-field { margin-bottom: 14px; }
.wd-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.wd-field input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.wd-field input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wd-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.wd-form .wd-form__note { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.wd-form__msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.wd-form__msg.is-ok { display: block; background: var(--accent-soft); color: var(--accent-dk); }
.wd-form__msg.is-err { display: block; background: #fee2e2; color: #b91c1c; }

/* Footer ------------------------------------------------------------------ */
.wd-footer { background: var(--bg-deep); color: #94a3b8; padding: 64px 0 28px; }
.wd-footer__grid { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(148,163,184,.15); }
.wd-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.wd-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.wd-footer a { color: #94a3b8; display: block; padding: 5px 0; }
.wd-footer a:hover { color: #fff; }
.wd-footer__about p { color: #94a3b8; font-size: .95rem; }
.wd-footer .wd-logo { color: #fff; margin-bottom: 14px; display: flex; align-items: center }
.wd-footer .wd-logo b { color: #a5b4fc; }
.wd-footer__contact { font-size: 1.05rem; font-weight: 600; color: #fff; }
.wd-footer .wd-btn--primary { display: inline-flex; color: #fff; padding: 17px 36px; font-size: 1.05rem; margin-top: 18px; }
.wd-footer .wd-btn--primary:hover { color: #fff; }
.wd-footer__bottom { padding-top: 22px; font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Inner page hero --------------------------------------------------------- */
.wd-pagehero { background: var(--bg-soft); padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px); position: relative; overflow: hidden; }
.wd-pagehero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% -20%, rgba(124,58,237,.12), transparent 60%); }
.wd-pagehero__inner { position: relative; max-width: 760px; }
.wd-pagehero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.wd-pagehero p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.wd-breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.wd-breadcrumbs a { color: var(--muted); }
.wd-breadcrumbs a:hover { color: var(--primary); }

/* Two-column content */
.wd-split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: start; }
.wd-prose h2 { font-size: 1.7rem; margin-top: 0; }
.wd-prose ul { list-style: none; padding: 0; display: grid; gap: 12px; margin: 22px 0; }
.wd-prose ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.wd-prose ul li svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.wd-aside { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.wd-aside h3 { font-size: 1.2rem; }
.wd-aside p { color: var(--muted); font-size: .96rem; }

/* About stats */
.wd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; }
.wd-stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow-sm); }
.wd-stat b { display: block; font-family: 'Manrope'; font-size: 2.4rem; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.wd-stat span { color: var(--muted); }

/* Contacts */
.wd-contacts { max-width: 640px; margin: 0 auto; }

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

/* Utilities */
.wd-center { text-align: center; }
.wd-mt { margin-top: 34px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .wd-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .wd-hero__card { max-width: 460px; }
  .wd-cta__grid { grid-template-columns: 1fr; gap: 28px; }
  .wd-split { grid-template-columns: 1fr; }
  .wd-aside { position: static; }
  .wd-footer__grid { grid-template-columns: 1fr 1fr; }
  .wd-problem { flex-basis: calc((100% - 16px) / 2); }
  .wd-adv__item { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 768px) {
  .wd-nav, .wd-header__phone { display: none; }
  .wd-burger { display: block; }
  .wd-header__inner { gap: 12px; }
  .wd-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    padding: 16px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .wd-nav.is-open a { padding: 10px 0; width: 100%; }
  .wd-nav.is-open .wd-nav__cta { display: inline-flex; width: 100%; margin-top: 10px; color: #fff; }
  .wd-tariff--featured { transform: none; }
  .wd-tariffs, .wd-extras { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .wd-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .wd-footer__cols { grid-template-columns: 1fr; }
  .wd-btn { width: 100%; }
  .wd-header__cta .wd-btn { display: none; }
  .wd-hero__actions { flex-direction: column; }
  .wd-problem, .wd-adv__item { flex-basis: 100%; }
}
