/*
Theme Name: SEO Expert — персональный сайт
Theme URI: https://example.com/
Author: Ваше имя
Description: Адаптивная тема-портфолио для SEO-специалиста с блогом, услугами и кейсами.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seo-expert
*/
:root{--paper:#f5f3ed;--paper-strong:#ebe8de;--ink:#17241f;--muted:#647069;--line:rgba(23,36,31,.16);--green:#b8e56a;--green-dark:#264c38;--white:#fffefa;--serif:Georgia,"Times New Roman",serif;--sans:Inter,"Segoe UI",Arial,sans-serif;--content:1160px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--sans)}a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.18em}img{display:block;max-width:100%;height:auto}button,input,textarea{font:inherit}:focus-visible{outline:3px solid #4f7b31;outline-offset:4px}.skip-link{position:absolute;top:-60px;left:1rem;z-index:100;padding:.75rem 1rem;background:var(--white)}.skip-link:focus{top:1rem}
.wrap{width:min(var(--content),calc(100% - 48px));margin-inline:auto}.site-header{position:relative;z-index:5;border-bottom:1px solid var(--line)}.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:32px}.brand{display:inline-flex;align-items:center;gap:11px;font-weight:750;letter-spacing:-.04em;font-size:18px;text-decoration:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--green);font:700 19px var(--serif)}.custom-logo-link{display:block;max-width:180px}.custom-logo{max-height:48px;width:auto}.main-nav ul{display:flex;align-items:center;gap:28px;margin:0;padding:0;list-style:none}.main-nav a{font-size:14px;text-decoration:none}.main-nav a:hover{text-decoration:underline}.header-cta,.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:48px;padding:0 20px;border:1px solid var(--ink);border-radius:999px;background:var(--ink);color:var(--white);text-decoration:none;font-size:14px;font-weight:650;transition:transform .2s,background .2s}.header-cta:hover,.button:hover{transform:translateY(-2px);background:var(--green-dark)}.button-light{color:var(--ink);border-color:var(--line);background:transparent}.button-light:hover{color:var(--white)}
.hero{padding:clamp(72px,10vw,140px) 0 88px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:8%;align-items:center}.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 22px;color:var(--green-dark);font-size:12px;font-weight:750;letter-spacing:.14em;text-transform:uppercase}.eyebrow:before{content:"";width:25px;height:1px;background:currentColor}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.08;letter-spacing:-.045em}h1{max-width:760px;margin-bottom:25px;font-size:clamp(48px,7.4vw,88px);font-weight:550}h1 em,h2 em{color:var(--green-dark);font-family:var(--serif);font-weight:400}.hero-copy{max-width:580px;color:var(--muted);font-size:clamp(17px,2vw,20px)}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.hero-note{margin:23px 0 0;color:var(--muted);font-size:13px}.hero-visual{position:relative;min-height:410px;display:grid;place-items:center}.visual-card{position:relative;width:min(100%,360px);aspect-ratio:.82;padding:24px;overflow:hidden;border-radius:190px 190px 24px 24px;background:var(--green)}.visual-card:before{content:"";position:absolute;inset:18px;border:1px solid rgba(23,36,31,.22);border-radius:inherit}.visual-orbit{position:absolute;inset:15% -18% auto;height:55%;border:1px solid rgba(23,36,31,.3);border-radius:50%;transform:rotate(-34deg)}.visual-orbit:before,.visual-orbit:after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:var(--ink)}.visual-orbit:before{top:14%;left:15%}.visual-orbit:after{right:7%;bottom:17%;width:22px;height:22px;background:var(--white)}.visual-letter{position:absolute;left:12%;bottom:-14%;color:rgba(23,36,31,.9);font:400 clamp(190px,27vw,310px)/.9 var(--serif);letter-spacing:-.12em}.visual-caption{position:absolute;right:-5px;bottom:36px;padding:13px 17px;border:1px solid var(--line);border-radius:999px;background:var(--white);box-shadow:0 12px 30px rgba(23,36,31,.08);font-size:12px;font-weight:700}
.section{padding:100px 0}.section-tint{background:var(--paper-strong)}.section-dark{background:var(--ink);color:var(--white)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:42px}.section-head h2{max-width:650px;margin-bottom:0;font-size:clamp(38px,5vw,60px);font-weight:500}.section-intro{max-width:410px;margin:0;color:var(--muted)}.section-dark .eyebrow{color:var(--green)}.section-dark .section-intro{color:rgba(255,255,255,.66)}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.service-card{display:block;min-height:250px;padding:28px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;transition:background .2s}.service-card:hover{background:rgba(255,255,255,.55)}.service-no{display:block;margin-bottom:45px;color:var(--green-dark);font:16px var(--serif)}.service-card h3{margin-bottom:12px;font-size:25px;font-weight:600}.service-card p{max-width:310px;margin-bottom:0;color:var(--muted);font-size:14px}
.case-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.case-card{position:relative;min-height:370px;display:flex;flex-direction:column;justify-content:space-between;padding:30px;overflow:hidden;border-radius:4px;background:#d8dfcf;color:var(--ink)}.case-card:nth-child(2){background:#d9d4c8}.case-card:after{content:"";position:absolute;width:290px;height:290px;right:-65px;bottom:-100px;border:1px solid rgba(23,36,31,.28);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.08),0 0 0 57px rgba(255,255,255,.08)}.case-tag{position:relative;z-index:1;align-self:flex-start;padding:6px 10px;border:1px solid rgba(23,36,31,.28);border-radius:30px;font-size:11px;text-transform:uppercase;letter-spacing:.1em}.case-card h3{position:relative;z-index:1;max-width:400px;margin-bottom:10px;font-size:clamp(29px,4vw,42px);font-weight:550}.case-card p{position:relative;z-index:1;max-width:410px;margin-bottom:0;color:rgba(23,36,31,.7)}.case-empty{grid-column:1/-1;min-height:auto;padding:28px;background:transparent;border:1px dashed var(--line)}.case-empty:after{display:none}.case-empty h3{font-size:22px}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;counter-reset:process}.process-step{padding-top:20px;border-top:1px solid rgba(255,255,255,.28);counter-increment:process}.process-step:before{content:"0" counter(process);display:block;margin-bottom:42px;color:var(--green);font:18px var(--serif)}.process-step h3{margin-bottom:10px;font-size:21px;font-weight:550}.process-step p{margin-bottom:0;color:rgba(255,255,255,.62);font-size:14px}
.about-grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:10%;align-items:start}.about-marker{min-height:280px;display:grid;place-items:center;border-radius:50%;background:var(--green);font:clamp(90px,15vw,170px)/1 var(--serif)}.about-text h2{max-width:700px;margin-bottom:24px;font-size:clamp(38px,5vw,58px);font-weight:500}.about-text p{max-width:650px;color:var(--muted)}.about-text .button{margin-top:10px}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{display:flex;flex-direction:column;min-width:0}.post-card img{width:100%;aspect-ratio:1.35;object-fit:cover;margin-bottom:18px;background:var(--paper-strong)}.post-meta{margin-bottom:9px;color:var(--muted);font-size:12px}.post-card h3{margin-bottom:9px;font-size:23px;font-weight:600}.post-card h3 a{text-decoration:none}.post-card h3 a:hover{text-decoration:underline}.post-card p{margin-bottom:0;color:var(--muted);font-size:14px}
.cta-panel{display:grid;grid-template-columns:1.2fr .8fr;gap:35px;align-items:end;padding:clamp(30px,6vw,66px);border-radius:5px;background:var(--green)}.cta-panel h2{max-width:700px;margin-bottom:15px;font-size:clamp(39px,5vw,63px);font-weight:500}.cta-panel p{max-width:500px;margin-bottom:0;color:rgba(23,36,31,.72)}.cta-panel .button{justify-self:end}.site-footer{padding:34px 0;background:var(--ink);color:var(--white)}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-inner p{margin:0;color:rgba(255,255,255,.58);font-size:13px}.footer-links{display:flex;gap:18px;font-size:13px}.footer-links a{color:rgba(255,255,255,.78)}
.page-hero{padding:80px 0 48px;border-bottom:1px solid var(--line)}.page-hero h1{max-width:900px;font-size:clamp(42px,6vw,72px)}.content-area{padding:55px 0 100px}.entry-content{max-width:780px;font-size:18px}.entry-content h2,.entry-content h3{margin-top:1.8em}.entry-content a{color:var(--green-dark)}.entry-content blockquote{margin:2em 0;padding:8px 0 8px 24px;border-left:3px solid var(--green-dark);font:24px/1.4 var(--serif)}.entry-content img{border-radius:3px}.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 22px}.pagination{margin-top:48px}.pagination .nav-links{display:flex;gap:10px}.pagination a,.pagination span{padding:8px 13px;border:1px solid var(--line);border-radius:30px;text-decoration:none}.error-box{padding:100px 0;text-align:center}.error-box h1{margin-inline:auto}
@media(max-width:850px){.header-inner{min-height:70px;flex-wrap:wrap;gap:12px;padding-block:12px}.main-nav{order:3;width:100%;overflow-x:auto}.main-nav ul{justify-content:space-between;gap:18px;padding:8px 0 2px}.main-nav a{white-space:nowrap;font-size:13px}.header-cta{min-height:40px;padding-inline:15px;font-size:12px}.hero-grid{grid-template-columns:1fr .72fr;gap:3%}.hero-visual{min-height:320px}.service-grid{grid-template-columns:repeat(2,1fr)}.process-grid{grid-template-columns:repeat(2,1fr)}.about-grid{grid-template-columns:.55fr 1.45fr;gap:7%}.about-marker{min-height:220px}}
@media(max-width:620px){.wrap{width:min(var(--content),calc(100% - 34px))}.hero{padding-top:62px}.hero-grid{grid-template-columns:1fr}.hero-visual{min-height:310px;margin-top:18px}.visual-card{width:250px}.visual-letter{font-size:220px}.visual-caption{right:calc(50% - 150px);bottom:12px}.section{padding:72px 0}.section-head{display:block}.section-head h2{margin-bottom:18px}.service-grid,.case-grid,.blog-grid,.post-list{grid-template-columns:1fr}.service-card{min-height:205px}.service-no{margin-bottom:27px}.case-card{min-height:310px}.process-grid{gap:34px 18px}.process-step:before{margin-bottom:25px}.about-grid{grid-template-columns:1fr}.about-marker{width:160px;min-height:160px;margin-bottom:8px}.cta-panel{grid-template-columns:1fr}.cta-panel .button{justify-self:start}.footer-inner{align-items:flex-start;flex-direction:column}}
.case-disclaimer{max-width:760px;margin:24px 0 0;color:var(--muted);font-size:12px}.post-placeholder{width:100%;aspect-ratio:1.35;display:grid;place-items:center;margin-bottom:18px;background:var(--paper-strong);color:var(--green-dark);font:italic 45px var(--serif)}.post-placeholder span{padding:10px 18px;border:1px solid var(--line);border-radius:50%}.entry-featured{margin-bottom:32px}.entry-featured img{width:100%;max-height:560px;object-fit:cover}
.footer-links ul{display:flex;gap:18px;margin:0;padding:0;list-style:none}.contact-setup-note{justify-self:end;max-width:260px;margin:0;color:rgba(23,36,31,.75);font-size:14px}
.service-hero{padding:clamp(65px,9vw,110px) 0;border-bottom:1px solid var(--line)}.service-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);align-items:center;gap:8%}.service-hero-copy h1{font-size:clamp(44px,6vw,76px)}.service-hero-copy .eyebrow a{text-decoration:none}.service-hero-image img{width:100%;max-height:470px;aspect-ratio:1.08;object-fit:cover;border-radius:4px}.service-hero-visual{display:grid;place-items:center;aspect-ratio:1.08;overflow:hidden;background:var(--green);color:var(--green-dark);font:italic clamp(100px,18vw,210px)/1 var(--serif)}.service-body-grid{display:grid;grid-template-columns:.65fr 1.35fr;gap:10%;align-items:start}.service-side-note{position:sticky;top:28px}.service-side-note h2{font-size:clamp(29px,3vw,40px);font-weight:500}.service-side-note p:last-child{color:var(--muted);font-size:14px}.service-content{max-width:780px}.service-content>:first-child{margin-top:0}.editor-hint{padding:20px;border:1px dashed var(--line);background:rgba(255,255,255,.45);font-size:15px}
@media(max-width:850px){.service-body-grid{grid-template-columns:.7fr 1.3fr;gap:6%}}
@media(max-width:620px){.service-hero-grid,.service-body-grid{grid-template-columns:1fr}.service-hero-grid{gap:34px}.service-hero-image,.service-hero-visual{max-width:380px}.service-side-note{position:static}.contact-setup-note{justify-self:start}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

