/*
Theme Name: Patriot Education
Theme URI: https://example.com/
Author: Custom theme starter
Description: Современная тема WordPress для учебного центра «Патриот».
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: patriot
*/

:root {
  --navy: #10243a;
  --navy-2: #0a1a2b;
  --ink: #14243a;
  --muted: #66758a;
  --red: #ef3f43;
  --red-dark: #d92e35;
  --surface: #f4f7fb;
  --line: #e2e9f1;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(16, 36, 58, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, Arial, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--surface); }
.section--dark { background: var(--navy-2); color: #fff; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); max-width: 620px; }
.section--dark .section-heading p { color: #aebdcd; }

.site-header { position: relative; z-index: 20; background: rgba(10, 26, 43, .97); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border: 2px solid var(--red); display: grid; place-items: center; transform: rotate(45deg); border-radius: 8px; }
.brand-mark::after { content: '★'; color: #fff; font-size: 16px; transform: rotate(-45deg); }
.brand-text { line-height: 1; font-size: 18px; }
.brand-text small { display: block; margin-top: 4px; color: #aebdcd; font-size: 8px; letter-spacing: .13em; font-weight: 700; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; }
.main-nav a { color: #dbe4ed; font-size: 14px; transition: color .2s; }
.main-nav a:hover { color: #fff; }
.header-contact { display: flex; align-items: center; gap: 15px; }
.header-phone { font-size: 13px; color: #dbe4ed; white-space: nowrap; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 25px; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; font-size: 13px; cursor: pointer; transition: .2s ease; }
.btn--red { color: #fff; background: var(--red); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--outline { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn--light { color: var(--navy); background: #fff; }
.btn--light:hover { background: #edf2f7; }
.btn--text { padding-inline: 0; min-height: auto; color: var(--red); background: transparent; }

.hero { position: relative; overflow: hidden; background: var(--navy-2); color: #fff; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,26,43,.98) 0%, rgba(10,26,43,.9) 42%, rgba(10,26,43,.28) 100%); pointer-events: none; }
.hero-bg { position: absolute; inset: 0; background: url('assets/images/hero-placeholder.svg') center/cover no-repeat; opacity: .58; }
.hero-inner { position: relative; z-index: 1; min-height: 650px; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 40px; padding-block: 90px; }
.hero-copy { max-width: 700px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.06em; text-transform: uppercase; }
.hero h1 span { color: var(--red); }
.hero-lead { max-width: 550px; color: #c4d0dc; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 45px; }
.hero-point { display: flex; align-items: center; gap: 10px; color: #dbe4ed; font-size: 13px; }
.hero-point i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-style: normal; }
.hero-card { justify-self: end; width: min(100%, 390px); padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero-card strong { display: block; font-size: 22px; line-height: 1.15; }
.hero-card p { color: #b7c6d4; font-size: 14px; }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 25px; box-shadow: var(--shadow); }
.card-number { color: var(--red); font-weight: 900; font-size: 13px; }
.card h3 { margin: 18px 0 10px; font-size: 21px; line-height: 1.12; letter-spacing: -.03em; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.card-link { color: var(--red); font-size: 13px; font-weight: 800; }
.card-icon { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid #d9e2ec; border-radius: 13px; color: var(--navy); font-size: 20px; }

.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); }
.program-image { aspect-ratio: 16/9; background: linear-gradient(135deg, #243c56, #8e9dac); }
.program-image img { width: 100%; height: 100%; object-fit: cover; }
.program-body { padding: 24px; }
.program-type { color: #728196; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.program-card h3 { margin: 12px 0 16px; font-size: 22px; line-height: 1.15; }
.program-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #65758a; font-size: 12px; }
.program-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 25px; }
.program-price small { display: block; color: #728196; font-size: 11px; }
.program-price strong { font-size: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.image-placeholder { min-height: 390px; border-radius: var(--radius); background: linear-gradient(135deg, #18314b, #8292a3); position: relative; overflow: hidden; }
.image-placeholder::after { content: 'ФОТО УЧЕБНОГО ЦЕНТРА'; position: absolute; inset: auto 25px 25px; color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .12em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 28px; }
.stat strong { display: block; color: var(--red); font-size: 35px; line-height: 1; }
.stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 22px; left: 8%; right: 8%; height: 1px; background: #cfd9e4; }
.step { position: relative; z-index: 1; padding-right: 18px; }
.step-num { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; border: 5px solid var(--surface); font-size: 12px; font-weight: 900; }
.step h3 { font-size: 16px; margin: 20px 0 8px; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }

.document-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.document-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.document-card h3 { font-size: 17px; margin: 15px 0 10px; }
.document-card p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.faq { max-width: 900px; margin: 0 auto; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 45px 22px 0; color: var(--muted); }

.cta { background: var(--navy-2); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.cta p { color: #b8c6d4; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.07); color: #fff; padding: 14px 15px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form ::placeholder { color: #91a2b4; }
.form-note { color: #8093a7; font-size: 11px; }

.site-footer { background: #071522; color: #fff; padding: 55px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 35px; }
.footer-title { color: #fff; font-weight: 800; margin: 0 0 18px; font-size: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-list a, .footer-text { color: #93a5b8; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; gap: 15px; color: #71869b; font-size: 11px; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 20px; background: var(--navy-2); border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-contact { display: none; }
  .hero-inner, .split, .cta-inner { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .document-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { top: 20px; bottom: 20px; left: 22px; width: 1px; height: auto; right: auto; }
  .step { display: grid; grid-template-columns: 45px 1fr; column-gap: 18px; padding: 0; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { margin-top: -42px; padding-top: 0; }
  .step p { margin-top: 22px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 60px 0; }
  .hero-inner { min-height: 650px; padding-block: 65px; }
  .hero h1 { font-size: 42px; }
  .hero-points { gap: 15px; }
  .cards-grid, .program-grid, .document-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .section-topline { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
