/*
Theme Name: SeoSib
Theme URI: https://seo-sib.ru
Description: SeoSib custom WordPress theme
Author: SeoSib
Version: 1.0
Text Domain: seosib
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: hsl(20,90%,40%);
  --primary-light: hsl(20,90%,50%);
  --bg: hsl(210,20%,98%);
  --fg: hsl(222,47%,11%);
  --muted: hsl(215,16%,47%);
  --muted-bg: hsl(210,14%,93%);
  --border: hsl(214,20%,89%);
  --card: #ffffff;
  --accent-bg: hsl(222,47%,11%);
  --accent-fg: hsl(210,20%,98%);
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 8px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font);font-size:16px;line-height:1.7;color:var(--fg);background:var(--bg);}
img{max-width:100%;height:auto;display:block;}
a{color:var(--primary);text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3,h4,h5,h6{font-family:var(--font);font-weight:700;line-height:1.25;color:var(--fg);}
p{margin-bottom:1.2em;}
ul,ol{padding-left:1.5em;margin-bottom:1.2em;}
li{margin-bottom:.4em;}

.container{max-width:1280px;margin:0 auto;padding:0 1.5rem;}
@media(min-width:1024px){.container{padding:0 2rem;}}

.grid-lines{background-image:linear-gradient(to right,rgba(214,220,230,.3) 1px,transparent 1px),linear-gradient(to bottom,rgba(214,220,230,.3) 1px,transparent 1px);background-size:80px 80px;}
.glass{backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background:rgba(255,255,255,.7);border:1px solid rgba(214,220,230,.5);border-radius:var(--radius);}

/* HEADER */
#site-header{position:fixed;top:0;left:0;right:0;z-index:100;transition:all .5s;}
#site-header.scrolled{backdrop-filter:blur(20px);background:rgba(255,255,255,.8);border-bottom:1px solid var(--border);box-shadow:0 1px 3px rgba(0,0,0,.05);}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;}
@media(min-width:1024px){.header-inner{height:80px;}}
.site-logo{display:flex;align-items:center;gap:8px;text-decoration:none;}
.logo-icon{width:32px;height:32px;background:var(--primary);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;}
.logo-text{font-weight:700;font-size:1.1rem;letter-spacing:-.02em;color:var(--fg);}
.logo-text span{color:var(--primary);}
.main-nav{display:none;align-items:center;gap:2rem;list-style:none;padding:0;margin:0;}
@media(min-width:1024px){.main-nav{display:flex;}}
.main-nav a{font-size:.875rem;font-weight:500;color:var(--muted);text-decoration:none;transition:color .2s;}
.main-nav a:hover,.main-nav a.current{color:var(--primary);text-decoration:none;}
.header-cta{display:none;align-items:center;gap:1rem;}
@media(min-width:1024px){.header-cta{display:flex;}}
.header-phone{font-size:.875rem;color:var(--muted);text-decoration:none;}
.header-phone:hover{color:var(--fg);text-decoration:none;}
.btn{display:inline-flex;align-items:center;gap:8px;padding:.5rem 1.25rem;border-radius:var(--radius);font-size:.875rem;font-weight:600;cursor:pointer;border:none;transition:all .2s;text-decoration:none;line-height:1;font-family:var(--font);}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-light);text-decoration:none;color:#fff;}
.btn-outline{background:transparent;color:var(--fg);border:1px solid var(--border);}
.btn-outline:hover{background:var(--muted-bg);text-decoration:none;color:var(--fg);}
.btn-lg{padding:.875rem 2rem;font-size:1rem;}
.btn-white{background:#fff;color:var(--fg);}
.btn-white:hover{background:#f0f0f0;text-decoration:none;color:var(--fg);}
.btn-outline-white{background:transparent;color:rgba(210,220,235,.8);border:1px solid rgba(210,220,235,.25);}
.btn-outline-white:hover{background:rgba(255,255,255,.05);text-decoration:none;color:#fff;}
.menu-toggle{display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:8px;color:var(--fg);}
@media(min-width:1024px){.menu-toggle{display:none;}}
.mobile-menu{display:none;background:rgba(255,255,255,.97);backdrop-filter:blur(20px);border-top:1px solid var(--border);padding:1rem 1.5rem 1.5rem;}
.mobile-menu.open{display:block;}
.mobile-menu ul{list-style:none;padding:0;margin:0;}
.mobile-menu a{display:block;padding:.75rem 0;font-size:.875rem;font-weight:500;color:var(--muted);border-bottom:1px solid var(--border);text-decoration:none;}
.mobile-menu a:hover{color:var(--primary);}
.mobile-contacts{padding-top:1rem;display:flex;flex-direction:column;gap:.75rem;}
.mobile-contacts a{border:none;padding:0;}

/* HERO */
#hero{position:relative;display:flex;align-items:center;overflow:hidden;padding:8rem 0 5rem;}
body.admin-bar #site-header{top:32px;}
@media(max-width:782px){body.admin-bar #site-header{top:46px;}}
.hero-inner{display:grid;grid-template-columns:1fr;gap:3rem;align-items:center;position:relative;z-index:1;}
@media(min-width:1024px){.hero-inner{grid-template-columns:1fr 1fr;gap:4rem;}}
.section-badge{display:flex;align-items:center;gap:12px;margin-bottom:1rem;}
.badge-line{height:1px;width:48px;background:var(--primary);}
.badge-text{font-size:.7rem;font-family:monospace;text-transform:uppercase;letter-spacing:.15em;color:var(--primary);}
.hero-title{font-size:clamp(2.5rem,6vw,4.5rem);font-weight:700;line-height:.95;letter-spacing:-.03em;margin-bottom:1.5rem;}
.hero-title .accent{color:var(--primary);}
.hero-desc{font-size:1.125rem;color:var(--muted);line-height:1.7;max-width:480px;margin-bottom:2rem;}
.hero-buttons{display:flex;flex-direction:column;gap:1rem;}
@media(min-width:480px){.hero-buttons{flex-direction:row;flex-wrap:wrap;}}
.hero-stats{display:flex;gap:2rem;padding-top:1.5rem;margin-top:.5rem;border-top:1px solid var(--border);}
.hero-stat-value{font-size:1.5rem;font-weight:700;color:var(--fg);display:block;}
.hero-stat-label{font-size:.75rem;color:var(--muted);margin-top:2px;display:block;}
.ranking-card{background:rgba(255,255,255,.7);backdrop-filter:blur(20px);border:1px solid var(--border);border-radius:16px;padding:2rem;}
.ranking-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;}
.ranking-label{font-size:.7rem;font-family:monospace;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);}
.ranking-title{font-size:.875rem;font-weight:500;margin-top:4px;}
.ranking-growth{color:var(--primary);font-weight:700;font-size:.875rem;}
.bar-chart{display:flex;align-items:flex-end;gap:4px;height:160px;margin-bottom:1rem;}
.bar{flex:1;border-radius:2px 2px 0 0;background:rgba(204,82,0,.2);}
.bar.mid{background:rgba(204,82,0,.5);}
.bar.high{background:hsl(20,90%,40%);}
.bar-labels{display:flex;justify-content:space-between;font-size:.7rem;color:var(--muted);margin-bottom:1.5rem;}
.ranking-positions{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding-top:1rem;border-top:1px solid var(--border);text-align:center;}
.pos-value{font-size:1.1rem;font-weight:700;}
.pos-value.dim{color:var(--muted);}
.pos-value.mid-val{color:rgba(204,82,0,.7);}
.pos-value.bright{color:var(--primary);}
.pos-label{font-size:.7rem;color:var(--muted);margin-top:2px;}

/* SECTIONS */
.section{padding:5rem 0;}
.section-muted{background:var(--muted-bg);}
.section-title{font-size:clamp(1.75rem,4vw,2.75rem);font-weight:700;line-height:1.15;margin-bottom:1.5rem;}
.section-title .accent{color:var(--primary);}
.section-desc{font-size:1.0625rem;color:var(--muted);line-height:1.7;max-width:560px;margin-bottom:3rem;}
.grid-2{display:grid;grid-template-columns:1fr;gap:1.5rem;}
.grid-3{display:grid;grid-template-columns:1fr;gap:1.5rem;}
.grid-4{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;}
@media(min-width:768px){.grid-2{grid-template-columns:repeat(2,1fr);}.grid-3{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1024px){.grid-3{grid-template-columns:repeat(3,1fr);}.grid-4{grid-template-columns:repeat(4,1fr);}}

/* CARDS */
.stat-card{text-align:center;padding:1.5rem;background:rgba(204,82,0,.05);border-radius:var(--radius);}
.stat-value{font-size:2rem;font-weight:700;color:var(--primary);}
.stat-label{font-size:.8rem;color:var(--muted);margin-top:4px;}
.service-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:2rem;transition:all .3s;}
.service-card:hover{border-color:rgba(204,82,0,.3);transform:translateY(-2px);box-shadow:0 4px 24px rgba(0,0,0,.06);}
.service-num{font-size:.7rem;font-family:monospace;color:rgba(204,82,0,.4);letter-spacing:.1em;margin-bottom:1rem;}
.service-title{font-size:1.1rem;font-weight:700;margin-bottom:.75rem;}
.service-desc{font-size:.875rem;color:var(--muted);line-height:1.6;margin-bottom:1rem;}
.service-price{font-size:.8rem;font-weight:600;color:var(--primary);background:rgba(204,82,0,.08);display:inline-block;padding:3px 10px;border-radius:20px;}
.service-link{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:var(--primary);margin-top:1rem;text-decoration:none;}
.case-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:2rem;}
.case-tag{font-size:.7rem;font-weight:600;color:var(--primary);background:rgba(204,82,0,.1);padding:3px 10px;border-radius:20px;display:inline-block;margin-bottom:1rem;}
.case-title{font-size:1rem;font-weight:700;margin-bottom:.5rem;}
.case-domain{font-size:.8rem;color:var(--muted);margin-bottom:1.5rem;}
.case-metric{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.875rem;}
.case-metric:last-child{border:none;}
.case-metric-label{color:var(--muted);}
.case-metric-value{font-weight:700;color:var(--primary);}
.mini-bars{display:flex;align-items:flex-end;gap:3px;height:48px;margin:1rem 0;}
.mini-bar{flex:1;border-radius:2px 2px 0 0;background:rgba(204,82,0,.15);}
.mini-bar.active{background:var(--primary);}
.feature-item{display:flex;gap:1.25rem;align-items:flex-start;}
.feature-dot{width:10px;height:10px;border-radius:50%;background:var(--primary);flex-shrink:0;margin-top:7px;}
.feature-title{font-size:.9375rem;font-weight:600;margin-bottom:.25rem;}
.feature-desc{font-size:.875rem;color:var(--muted);}

/* FAQ */
.faq-item{border-bottom:1px solid var(--border);}
.faq-question{width:100%;background:none;border:none;text-align:left;padding:1.25rem 0;display:flex;justify-content:space-between;align-items:center;gap:1rem;cursor:pointer;font-size:.9375rem;font-weight:600;color:var(--fg);font-family:var(--font);}
.faq-question:hover{color:var(--primary);}
.faq-icon{flex-shrink:0;width:20px;height:20px;border:1.5px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;transition:transform .3s;color:var(--muted);}
.faq-item.open .faq-icon{transform:rotate(45deg);color:var(--primary);border-color:var(--primary);}
.faq-answer{display:none;padding-bottom:1.25rem;font-size:.875rem;color:var(--muted);line-height:1.7;}
.faq-item.open .faq-answer{display:block;}

/* CTA */
.cta-section{background:var(--accent-bg);padding:6rem 0;text-align:center;position:relative;overflow:hidden;}
.cta-section .grid-lines{position:absolute;inset:0;opacity:.1;pointer-events:none;}
.cta-buttons{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:center;}
@media(min-width:480px){.cta-buttons{flex-direction:row;}}

/* FOOTER */
#site-footer{background:var(--accent-bg);color:var(--accent-fg);padding:4rem 0 0;}
.footer-grid{display:grid;grid-template-columns:1fr;gap:3rem;margin-bottom:4rem;}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1024px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr;}}
.footer-brand p{font-size:.875rem;color:rgba(210,220,235,.5);line-height:1.7;margin-top:1rem;margin-bottom:0;}
.footer-col-title{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:rgba(210,220,235,.35);margin-bottom:1rem;}
.footer-nav{list-style:none;padding:0;margin:0;}
.footer-nav li{margin-bottom:.5rem;}
.footer-nav a{font-size:.875rem;color:rgba(210,220,235,.55);text-decoration:none;transition:color .2s;}
.footer-nav a:hover{color:var(--primary);text-decoration:none;}
.footer-contact-item{display:flex;align-items:center;gap:10px;font-size:.875rem;color:rgba(210,220,235,.55);margin-bottom:.75rem;text-decoration:none;}
.footer-contact-item:hover{color:var(--primary);text-decoration:none;}
.footer-bottom{border-top:1px solid rgba(210,220,235,.1);padding:1.5rem 0;display:flex;flex-direction:column;gap:.5rem;align-items:center;text-align:center;}
@media(min-width:768px){.footer-bottom{flex-direction:row;justify-content:space-between;text-align:left;}}
.footer-bottom p{font-size:.75rem;color:rgba(210,220,235,.3);margin:0;}

/* PAGE CONTENT */
.page-hero{padding:8rem 0 4rem;position:relative;overflow:hidden;background:var(--bg);}
.page-hero-inner{position:relative;z-index:1;padding-top:1rem;}
.content-wrap{max-width:900px;margin:0 auto;padding:3rem 1.5rem 5rem;}

/* Rich content styling for imported pages */
.content-wrap h1{font-size:clamp(1.75rem,4vw,2.5rem);margin-bottom:1.5rem;color:var(--fg);}
.content-wrap h2{font-size:clamp(1.25rem,3vw,1.75rem);border-left:4px solid var(--primary);padding-left:1rem;margin-top:3rem;margin-bottom:1rem;color:var(--fg);}
.content-wrap h3{font-size:1.1rem;font-weight:700;margin-top:2rem;margin-bottom:.75rem;color:var(--fg);}
.content-wrap p{font-size:1rem;color:var(--muted);line-height:1.8;margin-bottom:1.25em;}
.content-wrap p strong{color:var(--fg);font-weight:600;}
.content-wrap ul{list-style:none;padding:0;margin-bottom:1.5rem;}
.content-wrap ul li{padding:.5rem 0 .5rem 1.75rem;position:relative;font-size:.9375rem;color:var(--muted);border-bottom:1px solid var(--border);line-height:1.6;}
.content-wrap ul li:last-child{border-bottom:none;}
.content-wrap ul li::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:50%;background:var(--primary);}
.content-wrap ol{list-style:none;counter-reset:ol-counter;padding:0;margin-bottom:1.5rem;}
.content-wrap ol li{counter-increment:ol-counter;padding:.75rem 1rem .75rem 3.5rem;position:relative;font-size:.9375rem;color:var(--muted);background:var(--card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.5rem;line-height:1.6;}
.content-wrap ol li::before{content:counter(ol-counter);position:absolute;left:.75rem;top:50%;transform:translateY(-50%);width:26px;height:26px;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;}
.content-wrap a{color:var(--primary);text-decoration:none;font-weight:500;}
.content-wrap a:hover{text-decoration:underline;}

/* Price highlight */
.content-wrap p strong:first-child{display:inline-block;background:rgba(204,82,0,.08);color:var(--primary);padding:2px 10px;border-radius:20px;font-size:.875rem;}

/* =============================================
   HARD RESET — override WordPress/Gutenberg
   ============================================= */
body{font-family:var(--font)!important;background:var(--bg)!important;color:var(--fg)!important;}
.wp-site-blocks,.wp-block-post-content,.entry-content,.wp-block-template-part{all:unset!important;display:block!important;}
.wp-block-freeform{all:unset!important;display:block!important;width:100%!important;}
.wp-block-freeform h1,.wp-block-freeform h2,.wp-block-freeform h3,.wp-block-freeform p,.wp-block-freeform ul,.wp-block-freeform ol,.wp-block-freeform li,.wp-block-freeform strong,.wp-block-freeform a{all:unset!important;}
.wp-block-freeform h2{display:block!important;font-family:var(--font)!important;font-size:clamp(1.25rem,3vw,1.75rem)!important;font-weight:700!important;border-left:4px solid var(--primary)!important;padding-left:1rem!important;margin-top:2.5rem!important;margin-bottom:1rem!important;color:var(--fg)!important;}
.wp-block-freeform h3{display:block!important;font-family:var(--font)!important;font-size:1.1rem!important;font-weight:700!important;margin-top:1.75rem!important;margin-bottom:.75rem!important;color:var(--fg)!important;}
.wp-block-freeform h1{display:block!important;font-family:var(--font)!important;font-size:clamp(1.75rem,4vw,2.5rem)!important;font-weight:700!important;margin-bottom:1.5rem!important;color:var(--fg)!important;}
.wp-block-freeform p{display:block!important;font-family:var(--font)!important;font-size:1rem!important;color:var(--muted)!important;line-height:1.8!important;margin-bottom:1.25em!important;}
.wp-block-freeform p strong{color:var(--fg)!important;font-weight:600!important;}
.wp-block-freeform ul{display:block!important;list-style:none!important;padding:0!important;margin-bottom:1.5rem!important;}
.wp-block-freeform ul li{display:block!important;position:relative!important;padding:.5rem 0 .5rem 1.75rem!important;font-family:var(--font)!important;font-size:.9375rem!important;color:var(--muted)!important;border-bottom:1px solid var(--border)!important;line-height:1.6!important;}
.wp-block-freeform ul li::before{content:""!important;position:absolute!important;left:0!important;top:50%!important;transform:translateY(-50%)!important;width:8px!important;height:8px!important;border-radius:50%!important;background:var(--primary)!important;display:block!important;}
.wp-block-freeform ol{display:block!important;list-style:none!important;counter-reset:ol-counter!important;padding:0!important;margin-bottom:1.5rem!important;}
.wp-block-freeform ol li{counter-increment:ol-counter!important;display:block!important;position:relative!important;padding:.75rem 1rem .75rem 3.5rem!important;font-family:var(--font)!important;font-size:.9375rem!important;color:var(--muted)!important;background:var(--card)!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important;margin-bottom:.5rem!important;line-height:1.6!important;}
.wp-block-freeform ol li::before{content:counter(ol-counter)!important;position:absolute!important;left:.75rem!important;top:50%!important;transform:translateY(-50%)!important;width:26px!important;height:26px!important;background:var(--primary)!important;color:#fff!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:.75rem!important;font-weight:700!important;}
.wp-block-freeform a{color:var(--primary)!important;text-decoration:none!important;font-weight:500!important;}

/* WordPress / WooCommerce layout fixes */
body{margin:0!important;padding:0!important;}
body.wp-singular{padding:0!important;margin:0!important;}
main,#main,main.site-main{margin:0!important;padding:0!important;display:block!important;}
.wp-block-group,.is-layout-flow,.is-layout-constrained{max-width:none!important;padding:0!important;margin:0!important;}
/* WooCommerce shop/notices bars that add vertical space */
.woocommerce-notices-wrapper,.woocommerce-message,.woocommerce-error,.woocommerce-info{display:none!important;}
/* Admin bar offset for fixed header */
body.admin-bar{margin-top:0!important;}
body.admin-bar #site-header{top:32px!important;}
@media(max-width:782px){body.admin-bar #site-header{top:46px!important;}}
/* Remove any mysterious gaps between sections */
section+section{margin-top:0!important;}

/* BLOG */
.blog-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;}
@media(min-width:768px){.blog-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1024px){.blog-grid{grid-template-columns:repeat(3,1fr);}}
.post-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.75rem;display:flex;flex-direction:column;transition:all .3s;text-decoration:none;color:inherit;}
.post-card:hover{border-color:rgba(204,82,0,.3);box-shadow:0 4px 24px rgba(0,0,0,.06);text-decoration:none;}
.post-cat{font-size:.75rem;font-weight:600;color:var(--primary);background:rgba(204,82,0,.1);display:inline-block;padding:3px 10px;border-radius:20px;margin-bottom:1rem;}
.post-title{font-size:1rem;font-weight:700;margin-bottom:.75rem;line-height:1.4;color:var(--fg);}
.post-card:hover .post-title{color:var(--primary);}
.post-excerpt{font-size:.8125rem;color:var(--muted);line-height:1.6;flex:1;margin-bottom:1.25rem;}
.post-meta{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid var(--border);font-size:.75rem;color:var(--muted);}
.post-read{color:var(--primary);font-weight:600;}

/* ANIMATIONS */
.fade-up{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease;}
.fade-up.visible{opacity:1!important;transform:translateY(0)!important;}
.fade-up-d1{transition-delay:.1s;}
.fade-up-d2{transition-delay:.15s;}
.fade-up-d3{transition-delay:.2s;}

/* Ensure sections are never hidden by WooCommerce or other plugins */
.section,.section-muted,#hero,.cta-section,#site-footer{visibility:visible!important;display:block!important;}
.grid-3,.grid-4,.grid-2{display:grid!important;}
.service-card,.case-card,.stat-card,.feature-item{display:block!important;visibility:visible!important;}

::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px;}

@media(max-width:767px){
  .hide-mobile{display:none!important;}
  #hero{padding:7rem 0 3rem;}
  .section{padding:3.5rem 0;}
}
