/*
Theme Name: Nomad Legal Blog Prototype
Author: HUB GPT PR+SEO+GEO
Version: 0.2.0
Description: Editorial WordPress theme for Nomad Legal — приведена к финальному дизайну preview.html (правки 21.10.2026: hero в одну колонку, рубрики-плашки, статьи во всю ширину, персиковый CTA).
*/
:root{--blue:#4358f5;--lime:#d9ff65;--ink:#17202c;--muted:#687487;--soft:#eef0ff;--peach:#ffd1bc;--violet:#ded8ff;--line:#e6eaf2}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
a{text-decoration:none;color:inherit}
.wrap{max-width:1200px;padding:0 38px;margin:auto}

/* ── Шапка ── */
header{background:rgba(255,255,255,.92);backdrop-filter:blur(8px);position:sticky;top:0;z-index:4}
.head{min-height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:8px 0}
.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:850;white-space:nowrap;letter-spacing:-.6px}
.mark{display:grid;place-items:center;background:var(--blue);width:36px;height:36px;color:#fff;border-radius:11px;font-size:19px;box-shadow:0 7px 15px #4358f533}
.nav{display:flex;align-items:center;gap:24px;color:#414d61;font-size:14px;flex-wrap:wrap}
.nav a:hover{color:var(--blue)}
.button,.wp-block-button__link{border:0;background:var(--blue);color:#fff;padding:13px 24px;border-radius:999px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,transform .2s;font-size:inherit;line-height:1.4}
.button:hover,.wp-block-button__link:hover{text-decoration:none;background:#3145dd}
.button.lime{background:var(--lime);color:var(--ink)}
.button.lime:hover{background:#cdff45}
.button.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.button.ghost:hover{border-color:var(--blue);color:var(--blue);background:#fff}

/* ── Hero: одна спокойная колонка ── */
.hero{padding:64px 0 34px;max-width:760px}
.eyebrow{font-size:12px;font-weight:850;letter-spacing:.07em;background:#f4f9e7;border-radius:999px;padding:8px 12px;display:inline-block}
.eyebrow:before{content:"●";color:#8ae66f;margin-right:9px}
.hero h1{font-size:clamp(38px,4.6vw,58px);line-height:1.02;letter-spacing:-.045em;margin:22px 0 18px}
.blue-text{color:var(--blue);position:relative;display:inline-block}
.blue-text:after{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:8px;background:var(--lime);border-radius:50%;z-index:-1}
.hero p{font-size:19px;color:var(--muted);margin:0 0 26px}
.hero-links{display:flex;gap:12px;flex-wrap:wrap}

/* ── Рубрики: одна линия плашек ── */
.chips{display:flex;gap:10px;flex-wrap:wrap;padding:26px 0 8px}
.chip{display:inline-flex;align-items:center;gap:9px;background:#f6f7fb;border:1px solid transparent;border-radius:999px;padding:11px 18px;font-size:14px;font-weight:650;color:var(--ink);transition:border-color .2s,background .2s}
.chip:hover{border-color:var(--blue);background:var(--soft);text-decoration:none}
.chip .symbol{font-size:17px;color:var(--blue);line-height:1}
.searchrow{display:grid;grid-template-columns:1fr 175px;gap:12px;margin:8px 0 10px}
.searchrow input,.searchrow select{width:100%;border:1.5px solid transparent;border-radius:999px;background:#f6f7fb;padding:15px 22px;font:inherit;color:var(--ink)}
.searchrow input:focus,.searchrow select:focus{outline:0;border-color:var(--blue);background:#fff}

/* ── Статьи ── */
.section{padding:44px 0 30px}
.section h2{font-size:34px;letter-spacing:-.045em;margin:0 0 30px}
.section h2 .sub{font-size:14px;color:var(--muted);font-weight:500}
.articles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.article{border-radius:26px;overflow:hidden;background:#fff;border:1px solid var(--line);transition:transform .22s,box-shadow .22s,border-color .22s;display:flex;flex-direction:column}
.article:hover{transform:translateY(-6px);box-shadow:0 24px 48px #17202c1a;border-color:transparent}
.thumb{height:250px;display:grid;place-items:center;font-size:64px;position:relative;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.article:nth-child(1) .thumb{background:linear-gradient(135deg,#e8f1fb,#c9d9fb)}
.article:nth-child(2) .thumb{background:linear-gradient(135deg,#f1efff,#dcd6ff)}
.article:nth-child(3) .thumb{background:linear-gradient(135deg,#fff2ea,#ffd4be)}
.article .go{position:absolute;right:18px;bottom:18px;width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:19px;color:var(--blue);box-shadow:0 8px 20px #17202c26;transform:translateY(8px);opacity:0;transition:transform .22s,opacity .22s;z-index:1}
.article:hover .go{transform:translateY(0);opacity:1}
.article-body{padding:26px 26px 30px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex:1}
.article-body h3{font-size:23px;line-height:1.28;margin:0;letter-spacing:-.02em}
.article-body h3 a:hover{color:var(--blue)}
.article-body p{color:var(--muted);font-size:15px;line-height:1.55;margin:0}
.tag{display:inline-block;background:var(--lime);border-radius:999px;font-size:11px;font-weight:800;padding:6px 12px;color:var(--ink)}

/* ── CTA: узкая персиковая полоска ── */
.cta{margin:56px 0 10px;background:var(--peach);border-radius:26px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap}
.cta .ey{color:#c05a2e;font-size:12px;letter-spacing:.1em;font-weight:850;display:block;margin-bottom:8px}
.cta h2{font-size:26px;line-height:1.15;margin:0 0 8px;letter-spacing:-.03em}
.cta p{color:#7c5140;margin:0}

/* ── Внутренние страницы и статья ── */
.inner{min-height:55vh;padding:70px 0}
.inner h1{font-size:clamp(38px,5vw,58px);letter-spacing:-.05em;margin:18px 0 26px}
.panel{border-radius:30px;background:var(--soft);padding:35px;max-width:820px}
.article-view{max-width:800px;margin:0 auto;padding:56px 24px}
.article-view h1{font-size:clamp(32px,5vw,50px);line-height:1.1;letter-spacing:-.045em}
.article-view .meta{color:var(--muted);font-size:14px;margin:14px 0 30px}
.article-view .content h2{font-size:30px;margin-top:38px;letter-spacing:-.03em}
.article-view .content img{max-width:100%;height:auto;border-radius:20px}
.backlink{display:inline-block;margin-top:38px;color:var(--blue);font-weight:650}

footer{margin-top:60px;background:var(--ink);color:#fff;padding:36px 0}
footer p{color:#bdc8d6;margin:6px 0 0}
footer a{color:#fff}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

@media(max-width:1100px){
.nav{gap:12px}
.articles{grid-template-columns:1fr 1fr}
.thumb{height:220px}
}
@media(max-width:720px){
.wrap{padding:0 18px}
.head{padding:15px 0;flex-wrap:wrap}
.nav{flex-wrap:wrap}
.hero{padding:42px 0 26px}
.hero h1{font-size:40px}
.hero-links .button{width:100%}
.searchrow{grid-template-columns:1fr}
.articles{grid-template-columns:1fr}
.thumb{height:200px}
.cta{flex-direction:column;align-items:flex-start}
}
