/* SEOProfy Agancy – style.css */
:root {
  --bg: #060b1f;
  --bg-alt: #0a1330;
  --surface: #0f1c48;
  --surface-2: #14256a;
  --line: rgba(162, 214, 249, .22);
  --text: #eaf3fd;
  --muted: #b6c9df;
  --blue: #072ac8;
  --sky: #1e96fc;
  --ice: #a2d6f9;
  --yellow: #fcf300;
  --gold: #ffc600;
  --radius: 12px;
  --maxw: 1500px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 var(--font); min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); font-weight: 750; margin-top: 1.6em; scroll-margin-top: 96px; }
h3 { font-size: 1.2rem; font-weight: 700; scroll-margin-top: 96px; }
p, ul, ol { margin: 0 0 1.1em; overflow-wrap: break-word; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.narrow { max-width: 980px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--yellow); color: #060b1f; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 11, 31, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.logo-text span { color: var(--sky); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
.site-nav li a:hover { background: rgba(30, 150, 252, .16); color: var(--text); }
.site-nav li a.is-active { color: var(--yellow); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 13px; width: 20px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.3; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--yellow); color: #060b1f; }
.btn-primary:hover { background: var(--gold); color: #060b1f; }
.btn-ghost { border-color: var(--ice); color: var(--ice); background: transparent; }
.btn-ghost:hover { background: var(--ice); color: #060b1f; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* hero */
.page-hero { padding: 40px 0 56px; background: radial-gradient(900px 420px at 85% 0%, rgba(7, 42, 200, .55), transparent 70%), linear-gradient(180deg, #08123a, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero--home { padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-text { min-width: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-media { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(7, 42, 200, .35); }
.hero-media img { width: 100%; }
.narrow-hero { max-width: 1100px; margin-inline: 0; }
.page-hero--article { padding-bottom: 36px; }

.breadcrumbs { font-size: .93rem; margin-bottom: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--sky); }
.breadcrumbs a { color: var(--ice); }

/* sections */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2:first-child { margin-top: 0; }
.section-intro { color: var(--muted); max-width: 70ch; }
.prose { max-width: 980px; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--ice); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose li::marker { color: var(--sky); }
.prose p, .prose li { max-width: 78ch; }
.callout { border-left: 4px solid var(--yellow); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; }
.callout p { margin: 0; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; margin-top: 28px; }
.card-grid--posts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: .5em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--yellow); }
.card p { color: var(--muted); }
.card-link { font-weight: 700; display: inline-block; margin-top: 4px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 20px 24px 24px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--muted); margin-bottom: .8em; }
.post-meta span:first-child { color: var(--gold); font-weight: 700; }
.post-body h3 { font-size: 1.25rem; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 22px; border-top: 3px solid var(--sky); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--muted); margin: 0; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--yellow); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px; margin: 0 0 18px; color: var(--muted); }
.faq summary:hover { color: var(--yellow); }

/* CTA */
.cta { background: linear-gradient(120deg, var(--blue), #0b3fd6 55%, var(--sky)); padding: 52px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 .3em; color: #fff; }
.cta p { margin: 0; max-width: 62ch; color: #eef6ff; }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.article { min-width: 0; }
.article-cover { margin: 0 0 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-intro p:first-child { font-size: 1.15rem; color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.toc-title { font-size: 1.1rem; margin: 0 0 .6em !important; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: .35em; break-inside: avoid; }
.article-cta { margin-top: 44px; padding: 30px; border-radius: 16px; background: linear-gradient(120deg, var(--blue), var(--sky)); }
.article-cta h2 { margin-top: 0; color: #fff; font-size: 1.6rem; }
.article-cta p { color: #eef6ff; }
.article-side { position: sticky; top: 96px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h2 { font-size: 1.2rem; margin: 0 0 .6em; }
.side-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.side-card li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-card .btn { width: 100%; }

/* contact + form */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-card { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card p:last-child { margin: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--yellow); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #4a6aa8; background: #081235; color: var(--text); font: inherit; }
input:hover, select:hover, textarea:hover { border-color: var(--ice); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #ff8a8a; }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; margin-top: 4px; flex: none; accent-color: var(--yellow); }
.field.check label { font-weight: 400; margin: 0; }
.err { display: block; color: #ffb3b3; font-size: .93rem; min-height: 0; margin-bottom: 10px; }
.form-status { margin: 16px 0 0; font-weight: 600; color: var(--ice); }

/* footer */
.site-footer { background: #040818; border-top: 1px solid var(--line); padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; margin-bottom: .4em; }
.footer-title { font-size: 1rem; margin: 0 0 .8em; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer address { font-style: normal; }
.site-footer p { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: .95rem; }

/* responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px clamp(16px, 4vw, 48px) 24px; background: #070d28; border-bottom: 1px solid var(--line); }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav .btn { width: 100%; }
  .no-js .site-nav, html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .page-hero--home { padding: 40px 0 48px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form { padding: 20px; }
  .cta-inner .btn { width: 100%; }
  .logo-text { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
