/*
Theme Name: CIVSSM Academy
Theme URI: https://academy.edu.civssm.ru/
Author: ЦИВССМ
Description: Фирменная тема учебной платформы ЧУДПО «ЦИВССМ».
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: civssm-academy
*/

:root {
  --ink: #082f3d;
  --ink-2: #0e4354;
  --blue: #2585aa;
  --blue-soft: #e9f5f8;
  --orange: #ff8a32;
  --orange-dark: #e96f18;
  --cream: #fffaf4;
  --paper: #ffffff;
  --muted: #6f8490;
  --line: rgba(8, 47, 61, .12);
  --shadow: 0 24px 70px rgba(8, 47, 61, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fbfc;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(8,47,61,.92);
  backdrop-filter: blur(18px);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 38px rgba(0,0,0,.16); background: rgba(8,47,61,.97); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand img { width: 168px; display: block; filter: brightness(0) invert(1); }
.brand-copy { color: #fff; font-size: 10px; font-weight: 700; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; max-width: 145px; opacity: .72; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; transition: color .2s ease; }
.site-nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-link { color: #fff; font-size: 13px; font-weight: 700; opacity: .8; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; color: #fff; background: transparent; cursor: pointer; }

.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .tutor-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--orange) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 30px rgba(255,138,50,.24);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .tutor-btn:hover { transform: translateY(-2px); background: var(--orange-dark) !important; box-shadow: 0 18px 34px rgba(255,138,50,.32); }
.button--ghost { background: rgba(255,255,255,.09) !important; box-shadow: none; border: 1px solid rgba(255,255,255,.18) !important; }
.button--pale { color: var(--ink) !important; background: #fff !important; box-shadow: none; }

.hero {
  position: relative;
  padding: 92px 0 88px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 5%, rgba(37,133,170,.56), transparent 34%),
    radial-gradient(circle at 86% 22%, rgba(255,138,50,.18), transparent 26%),
    linear-gradient(135deg, #062935 0%, #0a3948 55%, #082f3d 100%);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -140px; bottom: -220px; width: 540px; height: 540px; border: 70px solid rgba(255,255,255,.035); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 80px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #bde7f3; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,138,50,.14); }
.hero h1 { max-width: 760px; margin: 24px 0 22px; font-size: clamp(44px, 5.6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--orange); }
.hero-lead { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 700; }
.hero-notes span::before { content: "\2713"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; color: var(--orange); background: rgba(255,255,255,.08); }

.academy-panel { position: relative; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 32px; background: rgba(255,255,255,.08); box-shadow: 0 34px 90px rgba(0,0,0,.24); backdrop-filter: blur(18px); transform: rotate(1.2deg); }
.panel-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-kicker { color: #a9dbea; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.panel-title { margin: 5px 0 0; font-size: 18px; line-height: 1.35; }
.status-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #65d19e; box-shadow: 0 0 0 7px rgba(101,209,158,.13); }
.lesson-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 16px; margin-top: 10px; border-radius: 18px; background: rgba(255,255,255,.085); }
.lesson-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.1); color: var(--orange); font-size: 13px; font-weight: 900; }
.lesson-card strong { display: block; font-size: 13px; }
.lesson-card small { display: block; margin-top: 2px; color: rgba(255,255,255,.52); font-size: 10px; }
.lesson-state { color: #91d8ec; font-size: 10px; font-weight: 800; }
.progress-wrap { margin-top: 18px; padding: 18px; border-radius: 20px; color: var(--ink); background: #fff; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; }
.progress-bar { height: 9px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #e8f0f2; }
.progress-bar span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffb174); }

.trust-strip { position: relative; z-index: 2; margin-top: -28px; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.trust-item { padding: 25px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.section { padding: 100px 0; }
.section--white { background: #fff; }
.section--soft { background: linear-gradient(180deg,#f0f8fa,#fff); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-kicker { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.section h2 { max-width: 760px; margin: 8px 0 0; font-size: clamp(32px,4vw,54px); line-height: 1.06; letter-spacing: -.045em; }
.section-intro { max-width: 560px; margin: 13px 0 0; color: var(--muted); }

.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.course-card { display: flex; min-height: 390px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 15px 45px rgba(8,47,61,.06); transition: transform .3s ease, box-shadow .3s ease; }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.course-card__visual { min-height: 152px; padding: 25px; color: #fff; background: linear-gradient(135deg,var(--ink),var(--blue)); }
.course-card:nth-child(2n) .course-card__visual { background: linear-gradient(135deg,#1b6882,#082f3d); }
.course-card:nth-child(3n) .course-card__visual { background: linear-gradient(135deg,#ef7e2a,#a84d0c); }
.course-card__tag { display: inline-flex; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.course-card__visual strong { display: block; margin-top: 42px; font-size: 28px; line-height: 1; }
.course-card__body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.course-card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.course-card p { color: var(--muted); font-size: 13px; }
.course-card__meta { display: flex; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; }
.empty-courses { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px; border-radius: 30px; color: #fff; background: linear-gradient(135deg,var(--ink),var(--ink-2)); }
.empty-courses h3 { margin: 0 0 10px; font-size: 28px; }
.empty-courses p { margin: 0; color: rgba(255,255,255,.65); }
.empty-courses__badge { justify-self: end; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: rgba(255,255,255,.08); text-align: center; }
.empty-courses__badge strong { display: block; color: var(--orange); font-size: 44px; line-height: 1; }
.empty-courses__badge span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 40px; color: var(--orange); font-size: 12px; font-weight: 900; }
.step h3 { margin: 0; font-size: 17px; }
.step p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; }
.feature-list { display: grid; gap: 13px; }
.feature-item { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-weight: 900; }
.feature-item strong { font-size: 14px; }
.feature-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.cta { padding: 0 0 100px; background: #fff; }
.cta-box { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 54px; overflow: hidden; border-radius: 32px; color: #fff; background: linear-gradient(135deg,var(--blue),var(--ink)); }
.cta-box::after { content:""; position:absolute; right:12%; top:-90px; width:240px; height:240px; border:45px solid rgba(255,255,255,.06); border-radius:50%; }
.cta-box h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(30px,4vw,50px); line-height: 1.05; }
.cta-box p { position: relative; z-index: 1; margin: 13px 0 0; color: rgba(255,255,255,.7); }
.cta-box .button { position: relative; z-index: 1; }

.content-shell { padding: 70px 0 100px; }
.content-card { padding: clamp(25px,5vw,60px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.entry-title { margin-top: 0; font-size: clamp(34px,5vw,60px); line-height: 1.05; letter-spacing: -.04em; }
.entry-content h2, .entry-content h3 { line-height: 1.2; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 12px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(8,47,61,.06); }
.woocommerce div.product { padding: 30px; border-radius: 24px; background: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select, .tutor-form-control { border: 1px solid var(--line) !important; border-radius: 13px !important; background: #fff !important; }
.tutor-wrap { padding-top: 45px; padding-bottom: 80px; }
.tutor-card, .tutor-dashboard .tutor-dashboard-content { border-color: var(--line) !important; border-radius: 20px !important; }

.site-footer { padding: 64px 0 30px; color: rgba(255,255,255,.72); background: #062935; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 55px; }
.footer-logo { width: 185px; filter: brightness(0) invert(1); }
.footer-copy { max-width: 420px; margin-top: 18px; font-size: 12px; }
.footer-title { color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; margin-top: 18px; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } [data-reveal] { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 82px 20px auto; display: none; padding: 24px; border-radius: 20px; background: #0a3948; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 16px; }
  .menu-toggle { display: grid; place-items: center; margin-left: auto; }
  .header-actions .header-link { display: none; }
  .hero-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .academy-panel { max-width: 620px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 0; }
  .container { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand img { width: 128px; }
  .brand-copy { display: none; }
  .site-nav { inset: 72px 13px auto; }
  .header-actions .button { min-height: 44px; padding: 0 14px !important; font-size: 11px !important; }
  .hero { padding: 70px 0 68px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .hero h1 { font-size: clamp(42px,13vw,58px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-notes { display: grid; gap: 10px; }
  .academy-panel { padding: 15px; transform: none; }
  .lesson-card { grid-template-columns: 42px 1fr; }
  .lesson-number { width: 42px; height: 42px; }
  .lesson-state { display: none; }
  .trust-strip { margin-top: -18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 76px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .course-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .empty-courses { grid-template-columns: 1fr; padding: 30px; }
  .empty-courses__badge { justify-self: stretch; }
  .cta { padding-bottom: 76px; }
  .cta-box { grid-template-columns: 1fr; padding: 34px 25px; }
  .cta-box .button { width: 100%; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
