/*
Theme Name: Надо Услугу
Theme URI: https://nadouslugu.ru/
Author: Nadouslugu
Description: Лёгкая SEO-ориентированная тема для агрегатора услуг с интеграцией CPA-партнёрки.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: nadouslugu
*/

:root {
  --navy: #14213d;
  --blue: #246bfd;
  --blue-dark: #1854cf;
  --mint: #17b890;
  --cream: #fff8ea;
  --ink: #162033;
  --muted: #637083;
  --line: #dfe5ee;
  --surface: #f6f8fb;
  --white: #fff;
  --shadow: 0 18px 45px rgba(28, 45, 77, .10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 18px; top: 18px; z-index: 1000; padding: 10px 14px; background: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 850; font-size: 22px; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(145deg, var(--blue), #6e96ff); box-shadow: 0 8px 18px rgba(36,107,253,.25); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-weight: 650; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; font-size: 24px; }

.button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border: 0; border-radius: 13px;
  color: #fff; background: var(--blue); font-weight: 750; cursor: pointer;
  box-shadow: 0 9px 22px rgba(36,107,253,.22); transition: .2s ease;
}
.button:hover { color: #fff; background: var(--blue-dark); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button-secondary:hover { color: var(--blue); background: #fff; }

.hero { overflow: hidden; padding: 82px 0 70px; background: radial-gradient(circle at 82% 18%, #dce8ff 0, transparent 32%), linear-gradient(180deg,#f8fbff,#fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; padding: 7px 12px; color: var(--blue-dark); background: #eaf1ff; border-radius: 999px; font-size: 14px; font-weight: 750; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.035em; }
h1 { margin: 18px 0; font-size: clamp(40px, 5.2vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; }
.lead { max-width: 670px; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--mint); font-weight: 900; }
.hero-panel { padding: 28px; border: 1px solid #e4eaf4; border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.quick-form label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; }
.quick-form select, .quick-form input { width: 100%; min-height: 52px; margin-bottom: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; }
.quick-form .button { width: 100%; }
.microcopy { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.section { padding: 76px 0; }
.section-soft { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(28,45,77,.05); }
.card:hover { border-color: #b9c9e8; box-shadow: var(--shadow); }
.card h3 { margin: 8px 0; }
.card p { color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #edf3ff; font-size: 24px; }
.price { color: var(--navy); font-weight: 800; }
.card-link { font-weight: 750; }

.steps { counter-reset: steps; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 50px; height: 50px; color: #fff; background: var(--blue); border-radius: 16px; font-weight: 850; }

.page-hero { padding: 54px 0 42px; background: linear-gradient(180deg,#f6f9ff,#fff); }
.breadcrumbs { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--muted); }
.page-hero h1 { max-width: 880px; margin: 12px 0; font-size: clamp(36px,4.5vw,58px); }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; align-items: start; gap: 44px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 48px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; }
.sidebar { position: sticky; top: 96px; }
.cta-box { padding: 25px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.cta-box h2, .cta-box h3 { margin-top: 0; color: #fff; }
.cta-box p { color: #ced7e8; }
.cta-box .button { width: 100%; }
.disclosure { margin-top: 12px; color: #aebbd2; font-size: 12px; }
.ad-label { margin-bottom: 14px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #dce5f3; font-size: 11px; line-height: 1.35; }
.partner-frame iframe { width: 100%; border: 0; border-radius: var(--radius); background: #fff; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 28px 0; }
.fact { padding: 18px; background: var(--surface); border-radius: 15px; }
.fact strong { display: block; color: var(--navy); font-size: 22px; }

.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--navy); font-weight: 750; }
.faq details p { margin-bottom: 0; color: var(--muted); }
.empty-state { padding: 50px; border: 1px dashed #bbc5d5; border-radius: var(--radius); text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.nav-links .page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; }

.site-footer { padding: 54px 0 25px; background: var(--navy); color: #bcc7d9; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2,1fr); gap: 50px; }
.site-footer .brand, .site-footer h3 { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #dbe3f0; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 54px; }
  .grid-4, .facts, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .header-cta { display: none; }
}
