/*
Theme Name: Солнышко
Theme URI: https://solnyshko.edu.kz
Description: Тема для сайта детского сада ТОО «ДМЦ "Солнышко"», г. Караганда. Все тексты, телефоны и фото меняются в админке: Внешний вид → Настроить.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: solnyshko
License: GPLv2 or later
*/

:root{
  --yellow:#FFC93C;--yellow-soft:#FFF4CC;--yellow-mid:#FFE08A;
  --magenta:#C2185B;--magenta-soft:#FDE3EE;--magenta-dark:#7A0F3A;
  --blue:#1E5AA8;--blue-soft:#E3EDFA;--blue-dark:#123E78;
  --green-soft:#E6F4EA;--green-dark:#1E5E33;
  --ink:#1F2433;--ink-2:#3A4058;--ink-3:#4A5068;--line:#F1E7C8;
}
*{box-sizing:border-box}
body{margin:0;font-family:'Nunito',system-ui,sans-serif;color:var(--ink);background:#fff;font-size:17px;line-height:1.55}
img{max-width:100%;height:auto}
a{color:var(--blue)}a:hover{color:var(--blue-dark)}
h1,h2,h3{line-height:1.15;font-weight:900;margin:0}
.wrap{max-width:1180px;margin:0 auto;padding-left:24px;padding-right:24px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Верхняя полоса */
.topbar{background:var(--blue);color:#fff;font-size:14px;font-weight:600}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:8px 28px;align-items:center;justify-content:space-between;padding-top:10px;padding-bottom:10px}
.topbar-info{display:flex;flex-wrap:wrap;gap:8px 24px}
.topbar-info span{display:flex;gap:8px;align-items:center}
.lang{display:flex;gap:6px;list-style:none;margin:0;padding:0}
.lang a{color:#fff;text-decoration:none;padding:4px 10px;border-radius:999px}
.lang .current-lang a{background:rgba(255,255,255,.18)}

/* Шапка */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:10}
.site-header .wrap{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}
.logo img{height:56px;width:auto;display:block}
.main-nav{flex:1 1 auto;display:flex;justify-content:center}
.main-nav ul{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;list-style:none;margin:0;padding:0;font-weight:700;font-size:16px}
.main-nav a{color:var(--ink);text-decoration:none}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--magenta)}
.header-cta{display:flex;flex-wrap:nowrap;gap:12px;align-items:center}
.header-cta .btn{min-height:44px;padding:0 18px}
.header-phone{font-size:18px;font-weight:900;color:var(--blue);text-decoration:none}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:999px;font-weight:900;text-decoration:none;border:0;cursor:pointer;font:inherit;font-weight:900}
.btn-primary{background:var(--magenta);color:#fff}.btn-primary:hover{background:#A3124B;color:#fff}
.btn-outline{background:#fff;color:var(--blue);border:2px solid var(--blue)}
.btn-blue{background:var(--blue);color:#fff}.btn-blue:hover{background:var(--blue-dark);color:#fff}
.btn-yellow{background:var(--yellow);color:var(--ink)}
.btn-lg{min-height:52px;padding:0 28px;font-size:18px}

/* Секции */
.section{padding:64px 0}
.section h2{font-size:38px;margin-bottom:28px}
.bg-yellow{background:var(--yellow-soft)}.bg-blue{background:var(--blue-soft)}
.c-magenta{color:var(--magenta)}.c-blue{color:var(--blue-dark)}

/* Первый экран */
.hero .wrap{display:flex;flex-wrap:wrap;gap:40px;align-items:center;padding-top:56px;padding-bottom:64px}
.hero-text{flex:1 1 440px;min-width:0;display:flex;flex-direction:column;gap:20px}
.hero-badge{align-self:flex-start;padding:6px 14px;border-radius:999px;background:#fff;color:var(--blue);font-size:14px;font-weight:800}
.hero h1{font-size:clamp(34px,5vw,52px)}
.hero p{margin:0;font-size:20px;color:var(--ink-2)}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips span{padding:8px 14px;border-radius:12px;background:#fff;font-weight:800}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-photos{flex:1 1 420px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hero-photos img{width:100%;object-fit:cover;display:block;border-radius:24px;height:170px}
.hero-photos img:first-child{grid-column:span 2;height:300px;border-radius:28px}

/* Факты */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;padding-top:48px;padding-bottom:24px}
.fact{padding:24px;border-radius:24px;display:flex;flex-direction:column;gap:6px}
.fact small{font-size:14px;font-weight:800}
.fact strong{font-size:28px;font-weight:900}
.fact span{font-weight:700;color:var(--ink-3)}
.fact.y{background:var(--yellow-soft)}.fact.y small{color:#6B5200}
.fact.m{background:var(--magenta-soft)}.fact.m small{color:var(--magenta-dark)}
.fact.b{background:var(--blue-soft)}.fact.b small{color:var(--blue-dark)}
.fact.g{background:var(--green-soft)}.fact.g small{color:var(--green-dark)}

/* О центре */
.about .wrap{display:flex;flex-wrap:wrap;gap:40px;align-items:center}
.about-photo{flex:1 1 380px;min-width:0;height:340px;object-fit:cover;border-radius:28px;width:100%}
.about-text{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:16px}
.about-text h2{margin:0}
.about-text p{margin:0;font-size:18px;color:var(--ink-2)}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.features div{padding:14px 16px;border-radius:16px;background:var(--yellow-soft);font-weight:800}
.features div::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--magenta);margin-right:10px}

/* Шаги */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.step{padding:24px;border-radius:24px;background:#fff;display:flex;flex-direction:column;gap:10px}
.step b{width:44px;height:44px;border-radius:50%;background:var(--yellow);display:flex;align-items:center;justify-content:center;font-size:22px}
.step h3{font-size:21px}.step p{margin:0;color:var(--ink-2)}

/* Новости */
.section-head{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;justify-content:space-between;margin-bottom:28px}
.section-head h2{margin:0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.card{border-radius:24px;border:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;background:#fff}
.card img{width:100%;height:200px;object-fit:cover;display:block}
.card .ph{height:200px;background:var(--yellow-mid)}
.card-body{padding:20px;display:flex;flex-direction:column;gap:8px}
.card-body time{font-size:14px;font-weight:800;color:var(--ink-3)}
.card-body h3{font-size:20px}.card-body h3 a{color:var(--ink);text-decoration:none}
.card-body p{margin:0;color:var(--ink-2)}

/* Директор, руководство */
.welcome{max-width:900px}
.welcome p{font-size:18px;color:var(--ink-2)}
.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-bottom:24px}
.person{padding:24px;border-radius:24px;background:#fff;display:flex;gap:18px;align-items:center}
.person img,.person .avatar{width:88px;height:88px;flex:0 0 88px;border-radius:50%;object-fit:cover;background:var(--blue-soft)}
.person small{font-size:14px;font-weight:800;color:var(--ink-3);display:block}
.person strong{font-size:21px;font-weight:900;display:block}
.person a{font-weight:800;text-decoration:none}

/* Заявка и контакты */
.contact .wrap{display:flex;flex-wrap:wrap;gap:32px}
.signup{flex:1 1 420px;min-width:0;padding:32px;border-radius:28px;background:var(--magenta);color:#fff;display:flex;flex-direction:column;gap:12px}
.signup h2{color:#fff;font-size:34px;margin:0}
.signup label{font-weight:800;font-size:15px}
.signup input,.signup textarea{min-height:48px;padding:12px 16px;border-radius:14px;border:0;font:inherit;color:var(--ink);width:100%}
.signup .hp{position:absolute;left:-9999px}
.notice{padding:12px 16px;border-radius:14px;font-weight:800}
.notice.ok{background:#E6F4EA;color:var(--green-dark)}.notice.err{background:#fff;color:var(--magenta)}
.contacts-info{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:12px;font-size:18px}
.contacts-info h2{color:var(--blue);font-size:34px;margin:0 0 6px}
.map{width:100%;height:300px;border:0;border-radius:24px;margin-top:8px}

/* Страницы и записи */
.page-head{background:var(--yellow-soft);padding:40px 0}
.page-head h1{font-size:clamp(30px,4vw,44px);color:var(--magenta)}
.content{padding:48px 0 64px}
.content .entry{max-width:860px;font-size:18px}
.entry img{border-radius:16px}
.entry .wp-block-gallery img{border-radius:12px}
.entry a{font-weight:700}
.pagination{margin-top:32px;display:flex;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{padding:8px 14px;border-radius:12px;background:var(--yellow-soft);text-decoration:none;font-weight:800}
.pagination .current{background:var(--magenta);color:#fff}

/* Подвал */
.site-footer{background:var(--ink);color:#E6E8EF;font-size:15px}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:24px 48px;justify-content:space-between;padding-top:40px;padding-bottom:40px}
.site-footer img{height:56px;width:auto;display:block;margin:0 0 8px -6px;align-self:flex-start}
.site-footer a{color:#E6E8EF}
.site-footer .col{display:flex;flex-direction:column;gap:4px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}

@media (max-width:700px){
  .section{padding:44px 0}.section h2{font-size:30px}
  .hero-photos img:first-child{height:220px}.hero-photos img{height:130px}
  .logo img{height:52px}
}
