/*
Theme Name: Wi-Fi.Click Light
Theme URI: https://wi-fi.click/
Author: ГК «Связь»
Description: Лёгкая собственная тема Wi-Fi.Click. Без сторонних зависимостей, конструкторов и внешних шрифтов — только ядро WordPress. Палитра взята с фирменного знака: индиго + розовый.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: wfc-light
*/

/* ── Палитра со знака бренда ───────────────────────────────── */
:root {
  --brand: #2b31c4;          /* индиго — основной со знака */
  --brand-dark: #1f24a0;
  --brand-soft: #eef0ff;
  --accent: #ff2e6a;         /* розовый — акцент со знака */
  --accent-dark: #e01b55;
  --ink: #171c2b;
  --muted: #667085;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,28,43,.05), 0 8px 24px rgba(23,28,43,.06);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 100; border-radius: 8px; }

/* ── Шапка ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { position: relative; }
.nav a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav .current-menu-item > a { color: var(--brand); }
/* Подменю */
.nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 2px;
}
.nav li:hover > ul, .nav li:focus-within > ul { display: flex; }
.nav ul ul a { font-size: 14.5px; white-space: normal; }
.nav-cta a {
  background: var(--accent); color: #fff !important; padding: 10px 18px; font-weight: 600;
}
.nav-cta a:hover { background: var(--accent-dark); }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; cursor: pointer; font-size: 17px; }

/* ── Герой ─────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 66px 0 54px; }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 11px; font-weight: 600; font-size: 16px;
  background: var(--brand); color: #fff; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── Карточки возможностей ─────────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,28,43,.06), 0 14px 34px rgba(23,28,43,.09); }
.card figure { margin: 0 0 14px; }
.card figure img { width: 46px; height: 46px; object-fit: contain; }
.card h4 { margin: 0 0 8px; text-align: left !important; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; text-align: left !important; }

/* ── Контент страниц ───────────────────────────────────────── */
.entry { padding: 44px 0 60px; }
.entry-content { max-width: 78ch; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 22px 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--bg-alt); font-weight: 600; }
.entry-content blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 10px 10px 0;
}
.page-title { margin-bottom: 8px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }

/* ── Лента записей ─────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card .thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
.post-card .body { padding: 20px 22px; }
.post-card h3 { font-size: 19px; margin-bottom: 8px; }
.post-card .meta { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.post-card .excerpt { color: var(--muted); font-size: 15px; margin: 0; }

/* ── Подвал ────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #c9cee0; padding: 46px 0 26px; margin-top: 60px; }
.site-footer a { color: #c9cee0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h5 { color: #fff; font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 15px; }
.footer-about p { font-size: 15px; margin: 0 0 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px;
  font-size: 14px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ── Мобильные ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 18px;
    max-height: 78vh; overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav ul ul { display: flex; position: static; border: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-cta a { text-align: center; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 46px 0 38px; }
  .footer-grid { grid-template-columns: 1fr; }
}
