/*
Theme Name: EW Company
Description: Тема-визитка на основе присланного HTML-макета. Весь контент редактируется через Настройщик и разделы админки WordPress.
Version: 1.0
Author: Ваша студия
Text Domain: ew-theme
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,sans-serif;
    background:#ffffff;
    color:#111;
    line-height:1.6;
}

img{ max-width:100%; display:block; }

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

header.site-header{
    position:sticky;
    top:0;
    background:#fff;
    border-bottom:1px solid #eee;
    z-index:1000;
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-size:26px;
    font-weight:700;
    color:#111;
    text-decoration:none;
}

.custom-logo{ max-height:44px; width:auto; }

.header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

nav.main-nav{
    display:flex;
    align-items:center;
}

nav.main-nav ul{
    list-style:none;
    display:flex;
}

nav.main-nav a{
    margin-left:25px;
    text-decoration:none;
    color:#111;
    font-weight:500;
}

.header-btn{
    margin-left:25px;
    padding:11px 22px;
    font-size:14px;
}

.ew-nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:32px;
    height:26px;
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
}

.ew-nav-toggle span{
    display:block;
    width:100%;
    height:2px;
    background:#111;
    transition:0.3s;
}

.ew-nav-toggle.is-open span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.ew-nav-toggle.is-open span:nth-child(2){
    opacity:0;
}

.ew-nav-toggle.is-open span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.hero{
    padding:110px 0;
    background:#f7f8fa;
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.hero h1{
    font-size:62px;
    line-height:1.05;
    margin-bottom:25px;
}

.hero p{
    font-size:20px;
    color:#555;
    margin-bottom:35px;
    max-width:650px;
}

.btn{
    display:inline-block;
    padding:17px 36px;
    background:#111;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
    transition:0.3s;
    border:none;
    cursor:pointer;
    font-size:16px;
}

.btn:hover{
    opacity:0.9;
    transform:translateY(-2px);
}

.hero-image img{
    width:100%;
    border-radius:24px;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.badges{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:35px;
}

.badge{
    display:inline-block;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #ddd;
    padding:12px 18px;
    border-radius:30px;
    font-size:14px;
    line-height:1;
}

.proof{
    margin-top:35px;
    padding:25px;
    background:#fff;
    border-left:4px solid #111;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.03);
}

.proof strong{
    display:block;
    margin-bottom:10px;
    font-size:20px;
}

.section{
    padding:100px 0;
}

.section-title{
    font-size:44px;
    margin-bottom:20px;
}

.section-subtitle{
    color:#666;
    font-size:18px;
    max-width:800px;
    margin-bottom:50px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    border:1px solid #eee;
    border-radius:20px;
    padding:35px;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.card img{
    width:100%;
    height:190px;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:20px;
}

.card h3{
    margin-bottom:15px;
    font-size:24px;
}

.card p{
    color:#666;
}

.card ul{
    margin-top:15px;
    list-style:none;
}

.card ul li{
    margin-bottom:12px;
    color:#666;
}

.dark{
    background:#111;
    color:#fff;
}

.dark .section-subtitle{
    color:#bbb;
}

.dark .card{
    background:#1e1e1e;
    border-color:#333;
}

.dark .card p, .dark .card ul li{
    color:#bbb;
}

.placeholder-note{
    font-size:14px;
    color:#999;
    border:1px dashed #ddd;
    border-radius:12px;
    padding:30px;
    text-align:center;
}

.cta{
    padding:110px 0;
    text-align:center;
    background:#f7f8fa;
}

.cta h2{
    font-size:50px;
    margin-bottom:20px;
}

.cta p{
    font-size:20px;
    color:#555;
    margin-bottom:35px;
}

footer.site-footer{
    background:var(--footer-bg, #111111);
    color:var(--footer-text, #bbbbbb);
    font-family:var(--footer-font, Arial, sans-serif);
    padding:70px 0 30px;
}

.footer-columns{
    display:grid;
    grid-template-columns:repeat(var(--footer-cols, 3), 1fr);
    gap:40px;
    padding-bottom:40px;
    margin-bottom:30px;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.footer-widget-title{
    color:var(--footer-heading, #ffffff);
    font-size:17px;
    margin-bottom:16px;
}

.footer-widget{
    font-size:15px;
    line-height:1.7;
}

.footer-widget ul{
    list-style:none;
}

.footer-widget ul li{
    margin-bottom:10px;
}

.footer-widget a{
    color:var(--footer-link, #ffffff);
    text-decoration:none;
    opacity:0.85;
}

.footer-widget a:hover{
    opacity:1;
    text-decoration:underline;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
    font-size:13px;
}

.footer-copyright{
    opacity:0.7;
}

.footer-nav ul{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.footer-nav a{
    color:var(--footer-link, #ffffff);
    text-decoration:none;
    opacity:0.75;
}

.footer-nav a:hover{
    opacity:1;
}

@media(max-width:800px){
    .footer-columns{ grid-template-columns:1fr; gap:30px; }
    .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

/* ===== COOKIE BANNER ===== */
.ew-cookie-banner{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#111;
    color:#eee;
    z-index:9999;
    box-shadow:0 -10px 30px rgba(0,0,0,0.15);
}

.ew-cookie-inner{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:20px 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
}

.ew-cookie-inner p{
    margin:0;
    font-size:14px;
    line-height:1.6;
    color:#ccc;
    max-width:800px;
}

.ew-cookie-inner a{
    color:#fff;
    text-decoration:underline;
}

.ew-cookie-inner .btn{
    flex-shrink:0;
    padding:12px 26px;
    font-size:14px;
}

@media(max-width:600px){
    .ew-cookie-inner{ flex-direction:column; align-items:flex-start; }
}

@media(max-width:950px){

.hero-grid{
    grid-template-columns:1fr;
}

.hero h1{
    font-size:46px;
}

.section-title{
    font-size:36px;
}

.cta h2{
    font-size:38px;
}

nav.main-nav{ display:none; }

.ew-nav-toggle{ display:flex; }

nav.main-nav.is-open{
    display:block;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid #eee;
    box-shadow:0 15px 30px rgba(0,0,0,0.08);
    padding:10px 0;
}

nav.main-nav.is-open ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

nav.main-nav.is-open a{
    display:block;
    margin:0;
    padding:16px 4px;
    border-bottom:1px solid #f2f2f2;
}

nav.main-nav.is-open li:last-child a{
    border-bottom:none;
}

nav.main-nav.is-open a.header-btn{
    display:block;
    width:90%;
    max-width:1200px;
    margin:14px auto 8px;
    padding:14px 26px;
    border-bottom:none;
    text-align:center;
}

}
/* =====================================================
   ОФОРМЛЕНИЕ СТРАНИЦ И СТАТЕЙ
===================================================== */

article{
    max-width:900px;
    margin:0 auto;
}

article h1{
    font-size:48px;
    line-height:1.2;
    margin-bottom:30px;
}

article h2{
    font-size:34px;
    margin:60px 0 25px;
    line-height:1.3;
}

article h3{
    font-size:26px;
    margin:40px 0 18px;
    line-height:1.4;
}

article p{
    margin-bottom:22px;
    font-size:18px;
    line-height:1.9;
    color:#444;
}

article ul,
article ol{
    margin:25px 0;
    padding-left:28px;
}

article li{
    margin-bottom:12px;
    font-size:18px;
    line-height:1.8;
    color:#444;
}

article strong{
    color:#111;
    font-weight:700;
}

article a{
    color:#2563eb;
    text-decoration:none;
}

article a:hover{
    text-decoration:underline;
}

article img{
    border-radius:14px;
    margin:35px auto;
}

article blockquote{
    margin:35px 0;
    padding:20px 30px;
    border-left:4px solid #111;
    background:#f7f7f7;
    font-style:italic;
}

article table{
    width:100%;
    border-collapse:collapse;
    margin:30px 0;
}

article th,
article td{
    border:1px solid #ddd;
    padding:14px;
}

article th{
    background:#f5f5f5;
}

@media (max-width:768px){

article h1{
    font-size:34px;
}

article h2{
    font-size:28px;
}

article h3{
    font-size:22px;
}

article p,
article li{
    font-size:17px;
}

}
.page-content{
    padding:80px 0;
}
