/*
Theme Name: Радомира. Телефон доверия
Theme URI: https://radomira.ru
Author: Центр «РАДОМИРА»
Author URI: https://radomira.ru
Description: Одностраничная тема телефона доверия Центра «РАДОМИРА» — бесплатная анонимная психологическая помощь.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radomira-helpline
*/

/* ============================================================
   Helpline — Телефон доверия
   Standalone HTML/CSS for Центр «РАДОМИРА»
   Design system inherited from radomira theme
   ============================================================ */

:root {
  --primary:      #2a4a6f;
  --primary-dark: #1a3552;
  --accent:       #4a7ba7;
  --accent-light: #6b9dc4;
  --bg-light:     #edf4f9;
  --bg-gray:      #f0f3f6;
  --bg-alt:       #f4f8fc;
  --text:         #333;
  --text-muted:   #666;
  --white:        #fff;
  --shadow-sm:    0 2px 8px rgba(42, 74, 111, 0.08);
  --shadow-md:    0 4px 20px rgba(42, 74, 111, 0.12);
  --shadow-lg:    0 8px 36px rgba(42, 74, 111, 0.18);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --transition:   0.25s ease;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

img { display: block; max-width: 100%; }

/* Keyboard users land on the phone number without tabbing through the menu.
   Sits above the preloader so it works before the page has settled. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ─── PRELOADER ─────────────────────────────────────────── */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #edf4f9 0%, #e2ecf5 50%, #d8e6f0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* Fail-safe: if main.js never runs (blocked, error, slow network) the
     overlay still clears on its own instead of hiding the phone number. */
  animation: preloader-failsafe 0.4s ease 3s forwards;
}

@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(42, 74, 111, 0.15);
}

.preloader-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
  border-radius: 22%;
}

.preloader-logo-base {
  filter: grayscale(100%);
}

.preloader-logo-fill {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.25s ease-out;
}

.preloader-spinner {
  width: 52px;
  height: 52px;
  position: relative;
}

.preloader-spinner::before,
.preloader-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  animation: preloader-spin 0.85s linear infinite;
}

.preloader-spinner::after {
  inset: 6px;
  border-top-color: var(--accent);
  animation-duration: 1.2s;
  animation-direction: reverse;
}

@keyframes preloader-spin { to { transform: rotate(360deg); } }

.preloader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.preloader-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(42, 74, 111, 0.1);
  overflow: hidden;
}

.preloader-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease-out;
}

/* ─── SCROLL PROGRESS ────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.1s linear;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #c8d6e4 0%, #e0e8f2 40%, #f0f4f9 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 74, 111, 0.1);
  box-shadow: 0 2px 12px rgba(42, 74, 111, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

.nav-center {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-center::-webkit-scrollbar { display: none; }

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.nav-active {
  background: rgba(42, 74, 111, 0.1);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle span:first-child { margin-top: 0; }
.nav-toggle span:last-child  { margin-bottom: 0; }

.nav-toggle.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-toggle.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* Seven items on one line: tighten them so the row still fits between the
   logo and the hamburger breakpoint at 768px. */
@media (max-width: 900px) {
  .nav-links { gap: 0.1rem; }
  .nav-links a { font-size: 0.8rem; padding: 0.45rem 0.55rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-logo img { height: 40px; max-width: 90px; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(42, 74, 111, 0.1);
    padding: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }
}

/* ─── SHARED SECTION LAYOUT ─────────────────────────────── */

section { padding: 3.5rem 1.5rem; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.section-title svg {
  color: var(--primary);
  filter: drop-shadow(0 1px 2px rgba(42, 74, 111, 0.15));
}

.section-title h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--primary);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  line-height: 1.3;
}

/* Forces a deliberate line break inside a heading at every screen width —
   a <br> would do the same but can't be turned off per breakpoint. */
.title-break {
  display: block;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating section backgrounds */
.section-alt { background: var(--bg-alt); }

/* ─── HERO ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  padding: 2rem 1.5rem 5rem;
}

/* Hero background image with gradient overlay for text readability */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 53, 0.1);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.hero-inner :is(h1, .hero-sub, .hero-free, .hero-hours, .hero-hours span) {
  -webkit-text-stroke: 0.35px rgba(13, 31, 53, 0.5);
  paint-order: stroke fill;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  -webkit-text-stroke: 0.5px rgba(13, 31, 53, 0.6);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.hero-free {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.5rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}

.hero-phone:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-hours {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}

.hero-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition), transform var(--transition);
  animation: bounce 2.5s ease-in-out infinite;
}

.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) translateY(3px);
  animation: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 480px) {
  .hero { padding-bottom: 4.5rem; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.4rem); }
  .hero-phone { font-size: 1.4rem; padding: 0.6rem 1.1rem; }
}

/* ─── SHARED BUTTON ─────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(180deg, #e2e8f2 0%, #f5f8fc 35%, #dce4ee 100%);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(75, 85, 99, 0.35);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* ─── STEPS / HOW IT WORKS ──────────────────────────────── */

#kak-eto-rabotaet {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 74, 111, 0.1);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(42, 74, 111, 0.3);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(42, 74, 111, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(42, 74, 111, 0.12);
}

.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  padding-top: 2.5rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.step-connector svg {
  width: 28px;
  height: 10px;
  overflow: visible;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 400px;
  }

  .step-connector {
    padding: 0.25rem 0;
    transform: rotate(90deg);
  }

  .step-connector svg { width: 24px; }
}

/* ─── WHO CAN CALL ──────────────────────────────────────── */

/* Capped at three cards per row: 3 × 280px + 2 × 20px gap. Without the cap
   the 1200px section width would fit a fourth card. */
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.audience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  width: min(100%, 280px);
  flex: 0 1 280px;
  padding: 1.5rem 1.25rem;
  background: #4a6580;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 28l56-56M0 0l56 56' stroke='rgba(255,255,255,0.05)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--transition), transform var(--transition);
}

.audience-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.audience-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.audience-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.audience-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ─── TOPICS ─────────────────────────────────────────────── */

.topics-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.topic-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 74, 111, 0.1);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.topic-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(42, 74, 111, 0.2);
  transform: translateY(-1px);
}

.topic-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(42, 74, 111, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.topic-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.topics-note {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 580px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(42, 74, 111, 0.1);
  box-shadow: var(--shadow-sm);
}

/* ─── REQUESTS ────────────────────────────────────────────── */

.requests-section {
  background: var(--bg-alt);
}

/* Flex rather than grid: the list has 14 items, so the final row is never
   full — flex lets that row centre itself instead of hugging the left edge. */
.requests-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  list-style: none;
  padding: 0;
}

.requests-list li {
  position: relative;
  flex: 0 1 280px;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 74, 111, 0.1);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  line-height: 1.4;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.requests-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(42, 74, 111, 0.2);
  transform: translateY(-1px);
}

.requests-list li::before {
  content: "\2713";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.requests-outro {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.requests-outro p {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.requests-outro strong {
  color: var(--primary);
}

/* ─── NO REASON IS TOO SMALL ─────────────────────────────── */

.reassurance-section {
  position: relative;
  background-color: #e8eef4;
  background-image: url('images/reassurance-bg.jpg');
  background-size: cover;
  background-position: center 0;
  background-repeat: no-repeat;
}

.reassurance-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}

.reassurance-section .section-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.reassurance-section .section-title h2 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reassurance-section .section-title svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.reassurance-section .about-block p {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  text-align: center;
}

/* The surrounding section is centred, but a two-line list reads far better
   ragged-right, so the list block is centred while its text stays left. */
.reassurance-list {
  display: table;
  max-width: 32rem;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.reassurance-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  line-height: 1.5;
}

.reassurance-list li:last-child {
  margin-bottom: 0;
}

.reassurance-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

/* ─── PRIVACY ─────────────────────────────────────────────── */

.privacy-section {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(74, 123, 167, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 20% 70%, rgba(42, 74, 111, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #f0f5fa 0%, #e8f0f8 100%);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.privacy-block {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(42, 74, 111, 0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.privacy-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.privacy-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(42, 74, 111, 0.1) 0%, rgba(74, 123, 167, 0.12) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 74, 111, 0.12);
}

.privacy-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.privacy-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.privacy-block p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.privacy-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 74, 111, 0.12);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  margin: 0 auto;
}

.privacy-cta p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ─── FAQ ────────────────────────────────────────────────── */

.faq-inner {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(42, 74, 111, 0.12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(42, 74, 111, 0.22);
}

.faq-q {
  list-style: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 3rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232a4a6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-q::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-q:hover { background: rgba(42, 74, 111, 0.04); }

.faq-a {
  padding: 0 1.4rem 1.2rem;
  border-top: 1px solid rgba(42, 74, 111, 0.08);
  text-align: center;
}

.faq-a p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  padding-top: 1rem;
}

.faq-a a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-a a:hover { text-decoration: none; }

/* ─── INTRO ─────────────────────────────────────────────── */

.intro-section {
  text-align: center;
}

.intro-section .section-inner {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.intro-block p {
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}

.intro-highlight {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ─── ABOUT ─────────────────────────────────────────────── */

#o-centre {
  background: var(--bg-gray);
  text-align: center;
}

#o-centre .section-inner {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-logo-wrap {
  text-align: center;
  margin: 0 0 2rem;
}

.about-logo-link {
  display: inline-block;
  transition: opacity 0.25s ease;
}

.about-logo-link:hover {
  opacity: 0.85;
}

.about-logo {
  max-width: 140px;
  height: auto;
  vertical-align: middle;
}

.about-block {
  margin-bottom: 1.5rem;
}

#o-centre .about-block {
  margin-top: 0.5rem;
}

#o-centre .about-block p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ─── CONTACTS ───────────────────────────────────────────── */

.contacts-section {
  background: var(--primary);
  color: #fff;
  padding: 4rem 1.5rem 2.5rem;
}

.contacts-section .section-title svg {
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.contacts-section .section-title h2 {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.contact-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  max-width: 740px;
  margin: 0 auto 2.5rem;
}

.contact-phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.contact-phone-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-phone-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.contact-phone-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.contact-phone-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contact-phone-number {
  font-size: 1.65rem;
  font-weight: 700;
}

.contact-phone-number a {
  color: #fff;
  text-decoration: none;
  transition: opacity var(--transition);
}

.contact-phone-number a:hover { opacity: 0.85; }

.contact-phone-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.75rem;
}

.contact-phone-block .btn {
  margin-top: auto;
  text-align: center;
}

.contact-about {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.contact-about p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.contact-site-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 0.35rem 1rem;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}

.contact-site-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.site-footer-grant-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-footer-grant-logo {
  height: 72px;
  width: auto;
  opacity: 0.85;
}

.site-footer-grant {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  line-height: 1.5;
}

.site-footer-copyright {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .site-footer-copyright {
    margin-top: 3.5rem;
    padding-top: 2rem;
  }
}


/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 640px) {
  section { padding: 2.5rem 1.25rem; }
  .section-title { margin-bottom: 1.75rem; }
  .topics-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .contact-phones { grid-template-columns: 1fr; }
  .contact-phone-number { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .faq-q { font-size: 0.93rem; padding: 1rem 2.75rem; }
  .faq-a { padding: 0 1.1rem 1rem; }
  .steps-grid { max-width: 100%; }
}

@media (min-width: 1024px) {
  .section-title h2 { font-size: 2.1rem; }
  section { padding: 4.5rem 2rem; }
  .topics-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─── 404 ───────────────────────────────────────────────── */

.error404-main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
}

.error404-inner {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error404-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}

.error404-code {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.05em;
}

.error404-main h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin: 0.5rem 0 1rem;
}

.error404-text {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 46ch;
}

.error404-hours {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* ─── PRINT / REDUCED MOTION ─────────────────────────────── */

/* Motion is opt-out in one place: this block covers everything driven by
   CSS, while main.js checks the same media query for the parallax effects
   that only exist in script. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg-img { transform: none !important; }
  .hero-scroll { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .nav, #preloader, .hero-scroll, .btn, .hero-bg-img { display: none; }
  .hero { min-height: auto; padding: 1rem; color: #000; }
  .hero-phone { border: 1px solid #000; }
}
