/*
Theme Name: Radomira SVO
Theme URI: https://radomira.ru/
Description: Single-page WordPress landing theme for psychological support to veterans and their families.
Author: Центр «РАДОМИРА»
Version: 1.0.0
Text Domain: radomira-svo
License: GPL v2 or later
*/

:root {
  --primary: #2a4a6f;
  --primary-dark: #1a3552;
  --accent: #4a7ba7;
  --bg-light: #edf4f9;
  --bg-gray: #f0f3f6;
  --text: #333;
  --text-muted: #666;
}
* { 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; }
a { color: inherit; text-decoration: none; }

/* Focus visibility for keyboard navigation (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* NAV — sticky header, hamburger on mobile */
.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 {
  grid-column: 1;
  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 {
  grid-column: 2;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
}
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links a:hover {
  background: rgba(42, 74, 111, 0.08);
  color: var(--primary);
}
.nav-links a.nav-active {
  background: rgba(42, 74, 111, 0.12);
  color: var(--primary);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.nav-toggle:active { background: rgba(42, 74, 111, 0.08); }
.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:nth-child(1) { margin-top: 0; }
.nav-toggle span:nth-child(3) { margin-bottom: 0; }
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@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: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s, opacity 0.3s;
  }
  .nav-links.open { max-height: 500px; opacity: 1; }
  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links.open a:hover,
  .nav-links.open a:focus {
    background: rgba(42, 74, 111, 0.18) !important;
    color: var(--primary) !important;
  }
  .nav-links.open a:active {
    background: rgba(42, 74, 111, 0.25) !important;
    color: var(--primary) !important;
  }
}

/* HERO — full-height banner; radial gradient darkens center only; scroll parallax in main.js */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('images/responsive/hero-background-640.jpg') center 0 / cover no-repeat;
  background-attachment: scroll;
  color: #fff;
  padding: 2rem 1.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 50% 50%,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  pointer-events: none;
}
@media (min-width: 641px) {
  .hero { background-image: url('images/responsive/hero-background-1024.jpg'); }
}
@media (min-width: 1025px) {
  .hero { background-image: url('images/responsive/hero-background-1920.jpg'); }
}
@media (min-width: 1921px) {
  .hero { background-image: url('images/hero-background.jpg'); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 2rem 2.5rem;
}
@media (max-width: 768px) {
  .hero { min-height: 92vh; padding: 1.5rem 1rem; }
  .hero-inner { padding: 1.5rem 1.25rem; }
  .hero-badge { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
  .hero-sub { font-size: 1.2rem; }
  .hero-phone { font-size: 1.6rem; }
}
.hero-badge {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 1);
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 1);
}
.hero-program {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-style: italic;
  margin-top: 0.4rem;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.65);
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 1);
}
.hero-sub.secondary {
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
}
.hero-phone {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding: 0.5rem 1rem;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 1);
}
.hero-phone a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-phone a:hover {
  color: #e8f0ff;
}
.hero-free {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(180deg, #e2e8f2 0%, #f5f8fc 35%, #dce4ee 100%);
  color: var(--primary) !important;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
  border: 1px solid rgba(55, 65, 81, 0.35);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.hero .btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
@media (min-width: 1024px) {
  .hero-inner { max-width: 600px; }
  .hero-badge { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); }
  .hero-sub { font-size: 1.35rem; }
  .hero-phone { font-size: 1.9rem; }
}
@media (min-width: 1440px) {
  .hero-inner { max-width: 680px; }
  .hero-badge { font-size: 1.35rem; }
  .hero h1 { font-size: 3.5rem; }
  .hero-sub { font-size: 1.5rem; }
  .hero-phone { font-size: 2.1rem; }
}
@media (min-width: 1920px) {
  .hero-inner { max-width: 760px; }
  .hero-badge { font-size: 1.5rem; }
  .hero h1 { font-size: 4rem; }
  .hero-sub { font-size: 1.65rem; }
  .hero-sub.secondary { margin-top: 1rem; }
  .hero-phone { font-size: 2.35rem; }
}

/* Section layout — shared */
section { padding: 3.5rem 1.5rem; }
/* Scroll reveal — subtle section appearance animation */
section.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
section.scroll-reveal.scroll-in-view {
  opacity: 1;
  transform: translateY(0);
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.section-title h2 { font-size: 1.75rem; color: var(--primary); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08); }
.section-title svg { flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08)); }

/* WHO */
#psihologicheskaya-pomoshch { 
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e2e8ff 45%,
    #ffe4e6 100%
  );
}
#psihologicheskaya-pomoshch .section-title h2 { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1); }
#psihologicheskaya-pomoshch .section-title svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)); }
.who-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
a.who-item {
  text-decoration: none;
  color: inherit;
}
.who-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background-color: #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.06)' stroke-width='0.5' fill='none'/%3E%3Cpath d='M0 56l56-56M56 0L0 56' stroke='rgba(255,255,255,0.04)' stroke-width='0.4' fill='none'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  min-width: 260px;
  max-width: 280px;
  transition: box-shadow 0.25s ease;
}
.who-item:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.who-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.who-icon svg { width: 20px; height: 20px; color: #fff; }
.who-item span {
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: none;
}

/* ISSUES — background lazy-loaded via JS; scroll parallax in main.js */
#vidy-pomoshchi {
  position: relative;
  background-color: #e8eef4;
  background-size: cover;
  background-position: center 0;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
#vidy-pomoshchi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 0;
}
#vidy-pomoshchi .section-inner { position: relative; z-index: 1; }
#vidy-pomoshchi .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);
}
#vidy-pomoshchi .section-title svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.issues-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
a.issue-card {
  text-decoration: none;
  color: inherit;
}
.issue-card {
  padding: 1.5rem;
  background: rgba(30, 45, 65, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: box-shadow 0.25s, background 0.25s;
  width: 100%;
  min-width: 260px;
  max-width: 300px;
}
.issue-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); background: rgba(30, 45, 65, 0.55); }
.issue-icon { flex-shrink: 0; width: 48px; height: 48px; background: rgba(255, 255, 255, 0.18); border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.25); }
#vidy-pomoshchi .issue-icon svg { width: 24px; height: 24px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
#vidy-pomoshchi .issue-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}
#vidy-pomoshchi .issue-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.35);
  line-height: 1.5;
}

/* HOW — helpline section; background lazy-loaded via JS; scroll parallax in main.js */
#telefon-doveriya {
  position: relative;
  background-color: #e8eef4;
  background-size: cover;
  background-position: center 0;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
#telefon-doveriya::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}
#telefon-doveriya .section-inner { position: relative; z-index: 1; }
#telefon-doveriya .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);
}
#telefon-doveriya .section-title svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
#telefon-doveriya .how-hours {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
}
#telefon-doveriya .about-block p,
#telefon-doveriya .about-block li {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
#telefon-doveriya .about-tasks li::before {
  background: #fff;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.how-item {
  padding: 1.25rem;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.how-icon { width: 48px; height: 48px; margin: 0 auto 0.75rem; background: rgba(42, 74, 111, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.how-icon svg { width: 24px; height: 24px; color: var(--primary); }
.how-item strong { display: block; margin-bottom: 0.3rem; color: var(--primary); }
.how-phones { margin-top: 1.5rem; text-align: center; }
.how-phones a { color: var(--primary); font-weight: 700; }

/* PROGRAMS — family support programs grid */
#programmy.programs-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  scroll-margin-top: 80px;
}
.programs-intro {
  text-align: center;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.programs-quick-links {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.programs-quick-links a {
  color: var(--primary);
  font-weight: 600;
}
.programs-quick-links span {
  margin: 0 0.35rem;
}

/* Program detail sections */
.program-detail {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(42, 74, 111, 0.15);
  scroll-margin-top: 80px;
}
.program-detail-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.program-detail-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.program-detail-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.program-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}
.program-detail h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.program-detail .about-tasks,
.program-detail ol {
  margin: 0.5rem 0 1rem 0;
  padding-left: 1.5rem;
}
.program-detail ol li {
  margin-bottom: 0.5rem;
}
.programs-cta {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(42, 74, 111, 0.1);
}
.programs-cta p {
  margin-bottom: 1rem;
  color: var(--text);
}
.programs-cta a { color: var(--primary); font-weight: 600; }
.program-to-register {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 0;
  text-align: center;
}
.program-scroll-down {
  display: block;
  width: 36px;
  height: 36px;
  margin: 1.25rem auto 0;
  padding: 6px;
  color: var(--primary);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (max-width: 768px) {
  .program-detail .program-scroll-down {
    position: relative;
    left: 50%;
    margin-left: -18px; /* half of icon width (36px) */
    margin-right: auto;
  }
}
.program-scroll-down:hover {
  opacity: 0.9;
}
.program-scroll-down:focus-visible {
  opacity: 0.9;
}
.program-scroll-down svg {
  display: block;
  width: 100%;
  height: 100%;
}
.program-register-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  background: rgba(82, 121, 156, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(82, 121, 156, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.program-register-link:hover {
  background: rgba(82, 121, 156, 0.14);
  border-color: rgba(82, 121, 156, 0.35);
  color: var(--accent);
}

/* Program registration — form */
#zapis-na-programmy {
  scroll-margin-top: 80px;
}
.program-registration {
  margin-top: 4.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef2f6 100%);
  border-radius: 16px;
  border: 1px solid rgba(42, 74, 111, 0.18);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(42, 74, 111, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
}
.program-registration::before {
  content: '';
  position: absolute;
  top: -2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
  opacity: 0.6;
}
.program-registration-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}
.program-registration-desc {
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}
.program-registration-message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
}
.program-registration-success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.program-registration-error {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.program-registration-error a { color: var(--primary); }
.program-registration-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.program-registration-form .required { color: #dc2626; }
.program-registration-field {
  margin-bottom: 0.75rem;
}
.program-registration-field.has-error input,
.program-registration-field.has-error select,
.program-registration-field.has-error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}
.program-registration-field.has-error input:focus,
.program-registration-field.has-error select:focus,
.program-registration-field.has-error textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}
.program-registration-field-error {
  display: block;
  min-height: 1.4em;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.4rem;
  font-weight: 500;
  line-height: 1.4;
}
@keyframes program-registration-soft-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12); }
}
.program-registration-field.program-registration-field-shake input,
.program-registration-field.program-registration-field-shake select,
.program-registration-field.program-registration-field-shake textarea {
  animation: program-registration-soft-pulse 1.2s ease-in-out;
}
/* Honeypot: invisible to users, hidden from assistive tech */
.program-registration-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.program-registration-consent {
  margin-top: 0.15rem;
}
.program-registration-consent-text {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.program-registration-consent-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.program-registration-consent-text a:hover {
  text-decoration: none;
}
.program-registration-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .program-registration-fields {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .program-registration-form .program-registration-field {
    margin-bottom: 0.6rem;
  }
  .program-registration-submit {
    margin-top: 0.85rem;
  }
}
.program-registration-form input[type="text"],
.program-registration-form input[type="tel"],
.program-registration-form select,
.program-registration-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(42, 74, 111, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.program-registration-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' 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/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.program-registration-form input:focus,
.program-registration-form select:focus,
.program-registration-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 74, 111, 0.12);
}
.program-registration-form input:focus:not(:focus-visible),
.program-registration-form select:focus:not(:focus-visible),
.program-registration-form textarea:focus:not(:focus-visible) {
  outline: none;
}
.program-registration-form input:focus-visible,
.program-registration-form select:focus-visible,
.program-registration-form textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.program-registration-form input::placeholder,
.program-registration-form textarea::placeholder {
  color: var(--text-muted);
}
.program-registration-form textarea {
  resize: vertical;
  min-height: 100px;
}
.program-registration-submit {
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
}

/* Toast notifications — dark transparent panels */
.radomira-toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2rem);
  pointer-events: none;
}
.radomira-toast-container > * {
  pointer-events: auto;
}
.radomira-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.radomira-toast-visible {
  opacity: 1;
  transform: translateY(0);
}
.radomira-toast-success {
  background: rgba(15, 23, 42, 0.88);
  color: rgba(255, 255, 255, 0.98);
}
.radomira-toast-success .radomira-toast-icon {
  color: #4ade80;
  flex-shrink: 0;
}
.radomira-toast-error {
  background: rgba(15, 23, 42, 0.9);
  color: rgba(255, 255, 255, 0.98);
}
.radomira-toast-error .radomira-toast-icon {
  color: #f87171;
  flex-shrink: 0;
}
.radomira-toast-icon-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.radomira-toast-text {
  flex: 1;
}
.radomira-toast a {
  color: #93c5fd;
  text-decoration: underline;
}
.radomira-toast a:hover {
  color: #bfdbfe;
}
@media (max-width: 768px) {
  .radomira-toast-container {
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
    width: auto;
    padding: 0 0.5rem;
  }
  .radomira-toast {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    gap: 0.6rem;
    border-radius: 12px;
    min-height: 48px;
  }
  .radomira-toast-text {
    min-width: 0;
    word-break: break-word;
  }
  .radomira-toast-icon-wrap {
    flex-shrink: 0;
  }
  .radomira-toast-icon {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 380px) {
  .radomira-toast-container {
    left: 0.75rem;
    right: 0.75rem;
    padding: 0 0.25rem;
  }
  .radomira-toast {
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
  }
}

/* ACTIVITIES — programs and support forms */
#meropriyatiya { background: #fff; }
#meropriyatiya .btn,
#programmy .btn,
#telefon-doveriya .btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(180deg, #e2e8f2 0%, #f5f8fc 35%, #dce4ee 100%);
  color: var(--primary) !important;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
  border: 1px solid rgba(75, 85, 99, 0.4);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
#meropriyatiya .btn:hover,
#programmy .btn:hover,
#telefon-doveriya .btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* ABOUT — center info */
#o-centre { background: var(--bg-gray); text-align: center; }
#o-centre .section-inner { max-width: 720px; margin-left: auto; margin-right: auto; }
#o-centre .about-block p { 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;
}
#o-centre .about-block {
  margin-top: 0.5rem;
}
.about-block { margin-bottom: 1.5rem; }
.about-block h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.about-block p { margin-bottom: 0.5rem; color: var(--text); }
.about-block em { color: var(--text-muted); display: block; margin-bottom: 0.75rem; }
.section-inner ul,
.section-inner ol {
  margin: 0.75rem 0 1rem 0;
  padding-left: 1.75rem;
}
.section-inner ul li,
.section-inner ol li {
  margin-bottom: 0.5rem;
}
.section-inner ul li:last-child,
.section-inner ol li:last-child { margin-bottom: 0; }
.about-tasks {
  list-style: none;
  margin: 0.75rem 0 1rem 0;
  padding-left: 0;
}
.about-tasks li {
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  position: relative;
}
.about-tasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.about-link { margin-top: 1.5rem; }
.about-link a { color: var(--primary); font-weight: 600; }

/* CONTACT — footer CTA */
#kontakty {
  background: #2a4a6f;
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}
#kontakty .section-title h2 { color: #fff; font-size: 1.5rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3); }
#kontakty .section-title svg { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.contact-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.contact-phone-block {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}
.contact-phone-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}
.contact-phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-phone-number a {
  color: #fff;
  text-decoration: none;
}
.contact-phone-number a:hover { opacity: 0.9; }
.contact-phone-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  flex: 1;
}
.contact-phone-block .btn {
  margin-top: auto;
}
#kontakty .btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(180deg, #e2e8f2 0%, #f5f8fc 35%, #dce4ee 100%);
  color: var(--primary) !important;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
  border: 1px solid rgba(75, 85, 99, 0.4);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#kontakty .btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.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: 0.75rem;
  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;
  }
}

/* PRELOADER — full-screen loader */
#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.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-spinner {
  width: 56px;
  height: 56px;
  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.9s linear infinite;
}
.preloader-spinner::after {
  inset: 6px;
  border-top-color: var(--accent);
  animation-duration: 1.2s;
  animation-direction: reverse;
}
.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-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.preloader-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(82, 121, 156, 0.15);
  overflow: hidden;
}
.preloader-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease-out;
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RADIO REPORT — Avtoradio block
   ============================================================ */
#avtoradio {
  background: linear-gradient(180deg, #f4f8fc 0%, #e8f0f8 100%);
}
.radio-report {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(42, 74, 111, 0.13);
  overflow: hidden;
}
.radio-report-meta {
  padding: 2rem 2rem 1.5rem;
}
.radio-report-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
}
.radio-report-badge svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.radio-report-station {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.radio-report-divider {
  color: var(--text-muted);
  font-weight: 400;
}
.radio-report-show {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.radio-report-desc {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.97rem;
}

/* Custom audio player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem;
  background: var(--primary);
}
.audio-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.audio-play-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.07);
}
.audio-play-btn .icon-pause { display: none; }
.audio-player.is-playing .icon-play { display: none; }
.audio-player.is-playing .icon-pause { display: block; }
.audio-progress-wrap {
  flex: 1;
  min-width: 0;
}
.audio-progress-bar {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.audio-progress-bar:hover .audio-progress-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}
.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 3px;
  pointer-events: none;
}
.audio-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: transform 0.15s;
}
.audio-time {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .radio-report-meta { padding: 1.5rem 1.25rem 1.25rem; }
  .audio-player { padding: 1rem 1.25rem; gap: 1rem; }
  .audio-play-btn { width: 42px; height: 42px; }
}

