/* ==========================================================================
   Arkan Academy — Training request, Contact, Login/Register, CIA & DipIFR
   landing pages, Privacy (Phases 6–10). Loaded after css/home.css.
   ========================================================================== */

/* ---------- Page head ---------- */
.p-head { background: var(--bg-soft); border-block-end: 1px solid var(--border); }
.p-head__inner { padding-block: clamp(28px, 4vw, 48px); }
.p-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-end: 16px; font-size: .875rem; color: var(--text-2); }
.p-crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--blue); font-weight: 700; text-decoration: none; }
.p-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.p-crumbs .icon { width: .9em; height: .9em; opacity: .6; }
.p-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.p-lead { margin-block-start: 10px; max-width: 680px; color: var(--text-2); font-size: var(--fs-lead); }

/* ---------- Form pattern ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: .9375rem; font-weight: 700; color: var(--navy); }
.fld .req { color: var(--accent); }
.fld .opt-t { font-weight: 500; color: var(--text-2); font-size: .875rem; }
.fld input, .fld textarea, .fld select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd8e3; border-radius: 12px;
  font: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.fld textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 98, 164, .14); }
.fld input[type="tel"], .fld input[type="email"] { direction: ltr; }
[dir="rtl"] .fld input[type="tel"], [dir="rtl"] .fld input[type="email"] { text-align: right; }
.fld__hint { font-size: .8125rem; color: var(--text-2); }
.fld__err { display: none; font-size: .875rem; font-weight: 700; color: #b3261e; }
.fld.is-invalid input, .fld.is-invalid textarea, .fld.is-invalid select { border-color: #b3261e; }
.fld.is-invalid .fld__err { display: block; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid #cfd8e3;
  font-weight: 700; color: var(--navy); cursor: pointer; background: #fff;
}
.choice input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.choice label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
fieldset.fld { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.fld legend { padding: 0; margin-block-end: 7px; font-size: .9375rem; font-weight: 700; color: var(--navy); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-block-start: 3px; accent-color: var(--blue); flex: none; }
.form__note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: .875rem; color: var(--text-2); }
.form__note .icon { flex: none; width: 18px; height: 18px; color: var(--blue); margin-block-start: 2px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__status { padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.form__status:empty { display: none; }
.form__status.is-ok { background: #e8f4ea; color: #2f6b3a; }
.form__status.is-err { background: #fbeae8; color: #b3261e; }

.panel { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel__title { font-size: 1.375rem; color: var(--navy); margin-block-end: 6px; }
.panel__lead { color: var(--text-2); margin-block-end: 22px; }

/* ---------- Two-column page layout ---------- */
.p-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-block: clamp(32px, 5vw, 60px); }
.side { display: grid; gap: 16px; }
.side-box { padding: 22px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.side-box h2 { font-size: 1.125rem; color: var(--navy); margin-block-end: 12px; }
.side-box--navy { background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 0; color: #fff; }
.side-box--navy h2 { color: #fff; }
.side-box--navy p { color: #d0e0ee; margin-block-end: 14px; }
.steps { display: grid; gap: 14px; counter-reset: st; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.steps strong { display: block; color: var(--navy); }
.steps span { font-size: .9375rem; color: var(--text-2); }
.clist { display: grid; gap: 10px; }
.clist a, .clist div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-weight: 700; }
.clist a:hover { border-color: var(--blue); }
.clist .icon { flex: none; width: 20px; height: 20px; color: var(--blue); }
.clist .wa .icon { color: var(--whatsapp); fill: currentColor; }
.clist small { display: block; font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.btn--wa-solid { background: var(--whatsapp); color: #fff; }
.btn--wa-solid:hover { background: #0c6b35; }
.btn--wa-solid svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Contact ---------- */
.c-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block-start: 26px; }
.c-card { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
a.c-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.c-card .icon { width: 24px; height: 24px; color: var(--blue); }
.c-card--wa .icon { color: var(--whatsapp); fill: currentColor; }
.c-card span { font-size: .8125rem; font-weight: 700; color: var(--text-2); }
.c-card strong { color: var(--navy); line-height: 1.5; overflow-wrap: anywhere; }
.side-box .clist + .btn { margin-block-start: 14px; }
.map { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--blue-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item[open] { border-color: var(--blue-tint); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 800; color: var(--navy); line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item summary .icon { flex: none; width: 20px; height: 20px; color: var(--blue); transform: rotate(90deg); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(-90deg); }
.faq-item p { padding: 0 18px 18px; color: var(--text-2); line-height: 1.85; }

/* ---------- Auth (login / register) ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 120px); }
.auth__art {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(28px, 5vw, 56px); color: #fff; overflow: hidden;
  background: radial-gradient(700px 380px at 20% 0%, rgba(78,160,216,.4), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy));
}
.auth__art::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E"); background-size: 56px 64px; }
.auth__art > * { position: relative; }
.auth__logo { width: 84px; height: 84px; padding: 8px; border-radius: 18px; background: #fff; object-fit: contain; }
.auth__art h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); color: #fff; }
.auth__art p { max-width: 460px; color: #d0e0ee; }
.auth__art ul { display: grid; gap: 8px; color: #e3eef7; }
.auth__art li { display: flex; gap: 10px; }
.auth__art li a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.auth__art li .icon { flex: none; width: 20px; height: 20px; color: #9cc7ea; margin-block-start: 3px; }
.auth__main { display: grid; place-items: center; padding: clamp(28px, 5vw, 56px) var(--gutter); background: var(--bg-soft); }
.auth__box { width: 100%; max-width: 440px; }
.auth__box h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--navy); }
.auth__box > p { margin-block: 6px 24px; color: var(--text-2); }
.pw { position: relative; }
.pw input { padding-inline-end: 52px; }
.pw button { position: absolute; inset-block: 2px; inset-inline-end: 2px; width: 46px; border: 0; background: none; color: var(--text-2); cursor: pointer; border-radius: 10px; }
.pw button:hover { color: var(--blue); }
.pw svg { width: 20px; height: 20px; }
.auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.auth__row a, .auth__alt a { color: var(--blue); font-weight: 700; }
.auth__alt { margin-block-start: 22px; padding-block-start: 18px; border-block-start: 1px solid var(--border); text-align: center; color: var(--text-2); }
.form .btn--block { width: 100%; }

/* ---------- Landing pages (CIA / DipIFR) ---------- */
.lp-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 420px at 85% -10%, rgba(78,160,216,.35), transparent 60%), linear-gradient(205deg, var(--navy-2) 0%, var(--navy) 70%); }
[dir="ltr"] .lp-hero { background: radial-gradient(900px 420px at 15% -10%, rgba(78,160,216,.35), transparent 60%), linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 70%); }
.lp-hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 700; font-size: .875rem; }
.lp-badge .icon { width: 18px; height: 18px; color: #ffb36b; }
.lp-crumbs { color: #c4d8ea; }
.lp-crumbs a { color: #fff; }
.lp-hero h1 { margin-block: 16px 14px; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.25; color: #fff; }
.lp-hero h1 em { font-style: normal; color: #ffb36b; }
.lp-hero p { font-size: var(--fs-lead); color: #d6e6f4; max-width: 600px; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.lp-hero__img { max-width: 440px; width: 100%; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lp-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-fact { display: flex; gap: 12px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.lp-fact .icon { flex: none; width: 22px; height: 22px; color: var(--blue); margin-block-start: 3px; }
.lp-fact span { display: block; font-size: .8125rem; font-weight: 700; color: var(--text-2); }
.lp-fact strong { color: var(--navy); line-height: 1.5; }
.lp-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.lp-why__text p { margin-block-start: 12px; font-size: 1.0625rem; color: var(--text-2); line-height: 1.85; }
.lp-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.lp-logos img { height: 72px; width: auto; max-width: 150px; object-fit: contain; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lp-card { padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-block-end: 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.lp-card__icon svg { width: 24px; height: 24px; }
.lp-card h3 { font-size: 1.0625rem; color: var(--navy); }
.lp-card p { margin-block-start: 6px; font-size: .9375rem; color: var(--text-2); }
.lp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-why__img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lp-why__text .section-head { margin-block-end: 0; }
.lp-why__text .lp-checks { margin-block-start: 20px; }
.lp-checks--one { grid-template-columns: 1fr; }
.lp-checks li { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); line-height: 1.6; }
.lp-checks .icon { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #e8f4ea; color: #2f6b3a; }
.lp-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-unit { position: relative; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-unit__k { display: inline-block; padding: 3px 12px; border-radius: var(--pill); background: var(--blue-soft); color: var(--blue); font-size: .8125rem; font-weight: 800; }
.lp-unit h3 { margin-block: 10px 12px; font-size: 1.125rem; line-height: 1.45; color: var(--navy); }
.lp-unit li { position: relative; padding-inline-start: 18px; color: var(--text); line-height: 1.75; }
.lp-unit li + li { margin-block-start: 4px; }
.lp-unit li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.lp-unit li[dir="ltr"] { text-align: start; }
.lp-unit li span[dir="ltr"] { white-space: nowrap; }
.lp-trainer { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(160deg, #fff, var(--blue-soft)); border: 1px solid var(--blue-tint); }
.lp-trainer__mark { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 2rem; font-weight: 800; }
.lp-trainer h2 { font-size: 1.375rem; color: var(--navy); }
.lp-trainer ul { display: grid; gap: 6px; margin-block-start: 12px; }
.lp-trainer li { display: flex; gap: 10px; }
.lp-trainer li .icon { flex: none; width: 20px; height: 20px; color: var(--blue); margin-block-start: 3px; }
.lp-cta { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.lp-cta h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); color: #fff; }
.lp-cta p { margin-block-start: 6px; color: #d0e0ee; }
.lp-cta__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block-start: 12px; }
.lp-cta__links a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.lp-cta__links a:hover { text-decoration: underline; }
.lp-cta__links .icon { width: 18px; height: 18px; fill: currentColor; }
.lp-cta__links .icon--line { fill: none; }

/* ---------- Privacy ---------- */
.legal { max-width: 820px; padding-block: clamp(32px, 5vw, 60px); }
.notice { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius-lg); background: #fdf8ec; border: 1px solid #f1e2bd; color: #6b4b00; }
.notice .icon { flex: none; width: 24px; height: 24px; margin-block-start: 2px; }
.notice strong { display: block; color: #4d3600; margin-block-end: 4px; }
.legal h2 { margin-block: 32px 12px; font-size: 1.375rem; color: var(--navy); }
.legal p { color: var(--text); line-height: 1.85; }
.legal .toc { display: grid; gap: 8px; }
.legal .toc li { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-2); }
.legal .toc { margin: 0; padding: 0; list-style: none; }
.legal .toc strong { display: block; color: var(--navy); }
.legal a { color: var(--blue); font-weight: 700; }
.legal .toc li::before { content: ""; flex: none; width: 8px; height: 8px; margin-block-start: .65em; border-radius: 2px; background: #c8d2dd; transform: rotate(45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .c-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .p-layout, .lp-hero__inner, .lp-why { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__art { order: 2; }
  .lp-hero__img { max-width: 320px; }
  .lp-cta { grid-template-columns: 1fr; }
  .lp-facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .form__row, .lp-checks { grid-template-columns: 1fr; }
  .c-cards { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .lp-hero__actions .btn { flex: 1 1 100%; }
  .lp-trainer { grid-template-columns: 1fr; }
  .lp-facts--3 { grid-template-columns: 1fr; }
}
