/*
Theme Name: CHILIK
Theme URI: https://chilik.kz
Author: CHILIK
Description: Блочная тема портала Чилика с данными из API CHILIK.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: chilik
*/

:root{--chilik-blue:var(--wp--preset--color--blue,#155eef);--chilik-bg:var(--wp--preset--color--background,#f7f8fa);--chilik-border:#e8ebf0;--chilik-muted:var(--wp--preset--color--muted,#777e8b)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--chilik-bg)}a{text-decoration:none}a:hover{color:var(--chilik-blue)}button,input,select{font:inherit}button{cursor:pointer}
.wp-site-blocks{min-height:100vh;display:flex;flex-direction:column}.wp-site-blocks>main{flex:1}.chilik-wrap{width:min(1180px,calc(100% - 40px));margin-inline:auto}.chilik-pad{padding-block:36px}.chilik-section{margin-block:48px}.chilik-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px}.chilik-section-head h2{margin:0}.chilik-section-head a{font-weight:700;color:var(--chilik-blue)}
.chilik-hero{border:1px solid #dbe7fc;border-radius:28px;background:#ebf2ff;padding:clamp(28px,5vw,58px);margin-block:28px}.chilik-hero h1{font-size:clamp(36px,5vw,60px);max-width:720px;line-height:1.08;letter-spacing:-.055em;margin:16px 0}.chilik-hero p{max-width:650px;color:#596171;line-height:1.7}.chilik-eyebrow{color:var(--chilik-blue);font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.chilik-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.chilik-grid--categories{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.chilik-card{display:block;overflow:hidden;background:#fff;border:1px solid var(--chilik-border);border-radius:20px;box-shadow:0 10px 30px rgba(23,25,31,.035);color:#17191f;transition:transform .2s,box-shadow .2s}.chilik-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px #17191f12;color:#17191f}.chilik-card__image{height:170px;width:100%;display:block;object-fit:cover;background:#eef2f7}.chilik-card__body{padding:20px}.chilik-card h3{font-size:19px;line-height:1.3;margin:10px 0}.chilik-card p{color:var(--chilik-muted);line-height:1.5;margin:8px 0}.chilik-card__meta{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #eef0f3;margin-top:18px;padding-top:15px;font-size:13px}.chilik-card__meta strong{font-size:17px}.chilik-card--category{min-height:130px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;font-weight:700}.chilik-card--category span:first-child{font-size:24px;color:var(--chilik-blue)}.chilik-pill{display:inline-block;border-radius:99px;background:#edf4ff;color:#1858c9;padding:5px 10px;font-size:12px;font-weight:700}.chilik-muted{color:var(--chilik-muted)}.chilik-empty{background:#fff;border:1px solid var(--chilik-border);border-radius:20px;text-align:center;color:var(--chilik-muted);padding:42px 20px}
.chilik-search{display:flex;gap:8px;max-width:600px;background:#fff;border:1px solid #dce6f7;border-radius:16px;padding:8px}.chilik-search input{flex:1;min-width:0;border:0;padding:8px 10px;outline:0}.chilik-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:12px;background:var(--chilik-blue);color:#fff;padding:10px 18px;font-weight:700}.chilik-button:hover{background:#0d50d6;color:#fff}.chilik-listing{display:grid;grid-template-columns:250px 1fr;gap:24px}.chilik-filters{background:#fff;border:1px solid var(--chilik-border);border-radius:20px;padding:20px;height:fit-content}.chilik-filters label{display:block;font-size:14px;margin:0 0 14px}.chilik-filters input,.chilik-filters select{display:block;width:100%;min-height:44px;margin-top:6px;padding:9px 12px;border:1px solid #d9dee7;border-radius:11px;background:#fff}.chilik-filters .chilik-button{width:100%}.chilik-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}.chilik-pagination a,.chilik-pagination span{border:1px solid var(--chilik-border);border-radius:10px;padding:9px 14px;background:#fff}.chilik-pagination .current{background:var(--chilik-blue);color:#fff}
.chilik-detail{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(230px,.6fr);gap:24px}.chilik-detail article,.chilik-detail aside{background:#fff;border:1px solid var(--chilik-border);border-radius:20px;overflow:hidden}.chilik-detail article>img{width:100%;max-height:380px;object-fit:contain;background:#eef2f7}.chilik-detail__body,.chilik-detail aside{padding:28px}.chilik-detail h1{font-size:clamp(28px,4vw,44px);line-height:1.12}.chilik-detail__text{white-space:pre-wrap;line-height:1.8;color:#424a58}.chilik-detail aside{height:fit-content}.chilik-detail aside p{line-height:1.6}.chilik-detail aside .chilik-button{width:100%}.chilik-weather{background:#fff;border:1px solid var(--chilik-border);border-radius:20px;padding:30px}.chilik-weather__temp{font-size:64px;font-weight:800}.chilik-weather__days{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:26px}.chilik-weather__days div{padding:15px;background:#f7f8fa;border-radius:14px}.chilik-map{height:480px;border-radius:20px;overflow:hidden;background:#eaf1fb}.chilik-footer{margin-top:60px;border-top:1px solid var(--chilik-border);background:#fff}.chilik-footer a{color:inherit}.chilik-footer a:hover{color:var(--chilik-blue)}
@media(max-width:800px){.chilik-grid,.chilik-grid--categories{grid-template-columns:repeat(2,minmax(0,1fr))}.chilik-listing,.chilik-detail{grid-template-columns:1fr}.chilik-weather__days{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.chilik-wrap{width:calc(100% - 28px)}.chilik-grid{grid-template-columns:1fr}.chilik-grid--categories{grid-template-columns:repeat(2,1fr)}.chilik-section-head{align-items:start;flex-direction:column}}

/* CHILIK visual refresh: shared by WordPress and the Plesk package. */
:root{--chilik-blue:#1259d7;--chilik-bg:#f5f7fb;--chilik-border:#e1e7f0;--chilik-muted:#607086;--chilik-ink:#172638}
body{color:var(--chilik-ink);background:var(--chilik-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{transition:color .18s ease}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffb84d;outline-offset:3px}
.wp-site-blocks>header{position:relative;z-index:3;background:#fff;box-shadow:0 1px 0 var(--chilik-border),0 12px 30px rgba(25,46,80,.035)}
.wp-site-blocks>header .wp-block-site-title a{color:#12325d;text-decoration:none}.wp-site-blocks>header .wp-block-site-title a:hover{color:var(--chilik-blue)}
.wp-site-blocks>header .wp-block-navigation a{font-size:14px;font-weight:650;color:#334459}.wp-site-blocks>header .wp-block-navigation a:hover{color:var(--chilik-blue)}
.chilik-wrap{width:min(1200px,calc(100% - 48px))}.chilik-pad{padding-block:32px 54px}.chilik-section{margin-block:58px}.chilik-section>.wp-block-heading{font-size:clamp(25px,3vw,34px);letter-spacing:-.035em;line-height:1.15;margin-bottom:24px;color:#172638}
.chilik-hero{position:relative;isolation:isolate;overflow:hidden;min-height:360px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(115deg,#112e58 0%,#1557c2 65%,#2585e7 100%);border:0;border-radius:30px;padding:clamp(30px,6vw,76px);box-shadow:0 22px 50px rgba(20,72,148,.18)}
.chilik-hero:before,.chilik-hero:after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}.chilik-hero:before{width:420px;height:420px;right:-125px;top:-210px;border:70px solid rgba(255,255,255,.08)}.chilik-hero:after{width:260px;height:260px;right:10%;bottom:-200px;background:rgba(255,255,255,.08)}
.chilik-hero .chilik-eyebrow{color:#b9dcff;font-size:12px;letter-spacing:.16em}.chilik-hero h1{color:#fff;max-width:800px;font-size:clamp(36px,5.4vw,67px);letter-spacing:-.055em;line-height:1.04;margin:14px 0}.chilik-hero p:not(.chilik-eyebrow){color:#dceaff;max-width:610px;font-size:clamp(16px,1.6vw,18px);line-height:1.6;margin:0 0 25px}
.chilik-search{max-width:690px;border:1px solid rgba(255,255,255,.6);border-radius:16px;padding:7px;box-shadow:0 16px 35px rgba(5,31,77,.16)}.chilik-search input{padding:11px 14px;color:#172638}.chilik-search input::placeholder{color:#7e8b9d}.chilik-search .chilik-button{border-radius:11px;padding-inline:24px}
.chilik-button{background:var(--chilik-blue);border-radius:11px;transition:background .18s ease,transform .18s ease}.chilik-button:hover{background:#0d46b1;transform:translateY(-1px)}
.chilik-grid{gap:20px}.chilik-grid--categories{gap:14px}.chilik-card{border-color:var(--chilik-border);border-radius:18px;box-shadow:0 5px 18px rgba(28,54,88,.045);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.chilik-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(28,54,88,.11);border-color:#c7d8f2}.chilik-card__image{height:190px;background:linear-gradient(140deg,#dceaff,#f2f6fc)}.chilik-card__body{padding:21px}.chilik-card h3{font-size:19px;letter-spacing:-.02em;color:#172638}.chilik-card p{color:#617084}.chilik-card__meta{color:#637186}.chilik-card__meta strong{color:#153d78;font-size:19px}.chilik-pill{background:#e7f0ff;color:#1553ba;padding:6px 11px}
.chilik-card--category{min-height:142px;background:linear-gradient(160deg,#fff 60%,#f0f5ff);padding:19px}.chilik-card--category span:first-child{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#e7f0ff;color:#1553ba;font-size:25px}.chilik-card--category span:last-child{line-height:1.3}
.chilik-filters,.chilik-detail article,.chilik-detail aside,.chilik-weather,.chilik-empty{border-color:var(--chilik-border);box-shadow:0 5px 18px rgba(28,54,88,.04)}.chilik-filters{position:sticky;top:22px}.chilik-filters strong{display:block;margin-bottom:17px;font-size:18px}.chilik-filters label{font-weight:600;color:#40526b}.chilik-filters input,.chilik-filters select{border-color:#d8e1ee}.chilik-listing{grid-template-columns:245px minmax(0,1fr);gap:25px}.chilik-detail aside{position:sticky;top:22px}.chilik-detail__body h1{letter-spacing:-.04em}.chilik-weather__temp{color:#164da5;letter-spacing:-.06em}.chilik-map{border:1px solid var(--chilik-border)}
.chilik-footer{background:#102846;color:#e1ebfa;border:0}.chilik-footer h3{color:#fff;letter-spacing:-.04em}.chilik-footer a{color:#dce9fa}.chilik-footer a:hover{color:#fff;text-decoration:underline}.chilik-footer p{color:#c4d4e9}
@media(max-width:800px){.chilik-hero{min-height:310px}.chilik-listing{grid-template-columns:1fr}.chilik-filters,.chilik-detail aside{position:static}.chilik-grid--categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.chilik-wrap{width:calc(100% - 28px)}.chilik-pad{padding-block:18px 40px}.chilik-hero{border-radius:22px;min-height:0;padding:30px 24px}.chilik-hero h1{font-size:36px}.chilik-search{flex-direction:column}.chilik-search .chilik-button{width:100%}.chilik-section{margin-block:42px}.chilik-grid--categories{grid-template-columns:repeat(2,minmax(0,1fr))}.chilik-card--category{min-height:125px}.chilik-card__image{height:205px}.chilik-detail__body,.chilik-detail aside{padding:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.chilik-card,.chilik-button,a{transition:none}.chilik-card:hover,.chilik-button:hover{transform:none}}
