/* =============================================================
   OnlinePolicy — Custom styles
   Используется в page-main.php и page-agent.php
   ============================================================= */

:root {
  --navy:       #0f1c2e;
  --navy-mid:   #1a2f4a;
  --navy-light: #243752;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #f8f4ee;
  --cream-dark: #ede8df;
  --text:       #1a1a1a;
  --muted:      #6b7280;
  --white:      #ffffff;
  --shadow:     0 4px 32px rgba(15,28,46,0.10);
  --shadow-lg:  0 12px 60px rgba(15,28,46,0.18);
  --radius:     16px;
}
html,
body.op-page {
  margin: 0;
  padding: 0;
}
.op-page .site-header,
.op-page .reboot-header,
.op-page #masthead {
  display: none !important;
}
a {
    color: inherit;
    text-decoration: inherit; /* необязательно, но полезно, чтобы убрать подчеркивание */
}

a:visited {
    color: inherit;
}
.op-agent-hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Скрываем стандартные элементы темы на fullwidth-шаблонах */
.op-page .site-header,
.op-page .site-footer,
.op-page #secondary,
.op-page .breadcrumbs,
.op-page .entry-header,
.op-page .entry-footer {
  display: none !important;
}

.op-page #content,
.op-page .site-content,
.op-page .site-content-inner,
.op-page #primary,
.op-page .content-area,
.op-page #main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.op-page .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── ОБЩИЕ КОМПОНЕНТЫ ─────────────────────────────────────── */

.op-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .25s;
  white-space: nowrap;
  line-height: 1;
}

.op-btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.op-btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
  color: var(--navy);
  text-decoration: none;
}

.op-btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(201,168,76,0.4);
}
.op-btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  text-decoration: none;
}

.op-btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.op-btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

.op-agent-contacts a.op-btn-outline-white:visited {
  color: var(--white) !important;
}

.op-agent-contacts a.op-btn-gold:visited,
.op-trust-card a.op-btn-gold:visited {
  color: var(--navy) !important;
}

.op-btn-outline-white img {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.op-btn-outline-white img:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

.op-btn-lg { padding: 16px 36px; font-size: 16px; }

.op-s-eye {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
}

.op-s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; color: var(--navy);
  line-height: 1.15; letter-spacing: -.5px; margin-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА (page-main.php)
   ═══════════════════════════════════════════════════════════ */

/* ── NAV ── */
.op-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,28,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  height: 68px; padding: 0 80px;
  display: flex; align-items: center; justify-content: space-between;
}

.op-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--white);
  text-decoration: none;
}
.op-nav-logo span { color: var(--gold); }
.op-nav-logo:hover { text-decoration: none; color: var(--white); }

.op-nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.op-nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--white); text-decoration: none;
  transition: color .2s; font-family: 'Manrope', sans-serif;
}
.op-nav-links a:visited { color: var(--white) !important; }
.op-nav-links a:hover { color: var(--gold); text-decoration: none; }

/* ── HERO (главная) ── */
.op-hero {
  background: var(--navy);
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.op-hero::before {
  content: ''; position: absolute; top: -180px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.op-hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.op-hero-content {
  padding: 100px 60px 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.op-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light); padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 36px; width: fit-content; font-family: 'Manrope', sans-serif;
  animation: opFadeUp .5s ease both .1s;
}

.op-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 58px); font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: 24px;
  animation: opFadeUp .5s ease both .2s;
}
.op-hero-title em { font-style: normal; color: var(--gold); }

.op-hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.6);
  line-height: 1.8; max-width: 460px; margin-bottom: 48px;
  font-family: 'Manrope', sans-serif;
  animation: opFadeUp .5s ease both .3s;
}

.op-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px;
  animation: opFadeUp .5s ease both .4s;
}

.op-hero-proof {
  display: flex; align-items: center; gap: 16px;
  animation: opFadeUp .5s ease both .5s;
}
.op-proof-avatars { display: flex; }
.op-proof-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid var(--navy); margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--white);
  font-family: 'Manrope', sans-serif;
}
.op-pa1{background:linear-gradient(135deg,#60a5fa,#2563eb);}
.op-pa2{background:linear-gradient(135deg,#34d399,#059669);}
.op-pa3{background:linear-gradient(135deg,#f472b6,#db2777);}
.op-pa4{background:linear-gradient(135deg,#fbbf24,#d97706);}

.op-proof-text {
  padding-left: 14px; font-size: 14px;
  color: rgba(255,255,255,0.5); font-family: 'Manrope', sans-serif;
}
.op-proof-text strong { color: var(--gold); }

/* Hero visual */
.op-hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 60px 60px 60px 20px; z-index: 2;
}

.op-phone {
  width: 300px; background: var(--navy-light); border-radius: 32px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(201,168,76,0.15);
  overflow: hidden;
}
.op-phone-notch {
  height: 28px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.op-notch-pill { width: 80px; height: 10px; background: rgba(255,255,255,0.1); border-radius: 100px; }
.op-phone-screen { padding: 20px; }
.op-ps-agent { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.op-ps-ava {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.op-ps-name { font-size: 15px; font-weight: 700; color: var(--white); font-family: 'Manrope', sans-serif; }
.op-ps-sub  { font-size: 12px; color: rgba(255,255,255,0.4); font-family: 'Manrope', sans-serif; }

.op-ps-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.op-ps-stat { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 8px; text-align: center; }
.op-ps-stat-n { font-size: 14px; font-weight: 800; color: var(--gold); display: block; font-family: 'Manrope', sans-serif; }
.op-ps-stat-l { font-size: 9px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: .04em; font-family: 'Manrope', sans-serif; }

.op-ps-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.op-ps-chip {
  background: rgba(201,168,76,0.12); color: var(--gold-light);
  padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600;
  font-family: 'Manrope', sans-serif;
}
.op-ps-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.op-ps-btn { padding: 10px; border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; color: var(--white); font-family: 'Manrope', sans-serif; }
.op-ps-btn-wa { background: #25d366; }
.op-ps-btn-tg { background: #0088cc; }

/* Floating badges */
.op-fbadge {
  position: absolute; background: var(--white); border-radius: 14px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
}
.op-fbadge-tr { top: 60px; right: 10px; animation: opFloat 4s ease-in-out infinite; }
.op-fbadge-bl { bottom: 80px; left: -10px; animation: opFloat 4s ease-in-out infinite 2s; }
.op-fbi { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.op-fbi-green { background: #dcfce7; }
.op-fbi-gold  { background: #fef3c7; }
.op-fbadge-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); font-family: 'Manrope', sans-serif; }
.op-fbadge-info span   { font-size: 11px; color: var(--muted); font-family: 'Manrope', sans-serif; }

/* ── VALUES ── */
.op-values { padding: 100px 80px; max-width: 1400px; margin: 0 auto; }
.op-values .op-s-title { margin-bottom: 64px; }

.op-values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.op-value-card {
  background: var(--white); border-radius: 20px; padding: 44px 40px;
  box-shadow: var(--shadow); border: 1px solid rgba(15,28,46,0.06);
  display: flex; gap: 24px; transition: all .3s;
  position: relative; overflow: hidden;
}
.op-value-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  transform: scaleY(0); transform-origin: top; transition: transform .3s;
}
.op-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.op-value-card:hover::after { transform: scaleY(1); }

.op-v-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #f0e8d4, #faf6ef);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.op-v-body h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  color: var(--navy); margin-bottom: 10px;
}
.op-v-body p { font-size: 15px; color: var(--muted); line-height: 1.75; font-family: 'Manrope', sans-serif; }

/* ── HOW IT WORKS ── */
.op-how { background: var(--navy); padding: 100px 80px; }
.op-how-inner { max-width: 1240px; margin: 0 auto; }
.op-how .op-s-title { color: var(--white); margin-bottom: 64px; }

.op-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.op-steps::before {
  content: ''; position: absolute; top: 28px;
  left: calc(12.5% + 24px); right: calc(12.5% + 24px); height: 1px;
  background: repeating-linear-gradient(90deg, rgba(201,168,76,0.4) 0, rgba(201,168,76,0.4) 8px, transparent 8px, transparent 18px);
}
.op-step { text-align: center; }
.op-step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--navy);
  font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; position: relative; z-index: 1; font-family: 'Manrope', sans-serif;
}
.op-step h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; font-family: 'Manrope', sans-serif; }
.op-step p  { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; font-family: 'Manrope', sans-serif; }

/* ── EXAMPLE ── */
.op-example {
  padding: 100px 80px; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.op-example .op-s-title { margin-bottom: 16px; }
.op-example-desc { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 32px; font-family: 'Manrope', sans-serif; }

.op-eq-card {
  background: var(--navy); border-radius: 20px; padding: 36px; margin-top: 36px;
  position: relative; overflow: hidden;
}
.op-eq-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}
.op-eq-mark { font-family: 'Playfair Display', serif; font-size: 64px; color: var(--gold); line-height: .6; margin-bottom: 20px; }
.op-eq-text { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 28px; font-family: 'Manrope', sans-serif; }
.op-eq-author { display: flex; align-items: center; gap: 14px; }
.op-eq-ava {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.op-eq-name { font-weight: 700; color: var(--white); font-size: 15px; font-family: 'Manrope', sans-serif; }
.op-eq-meta { font-size: 13px; color: rgba(255,255,255,0.4); font-family: 'Manrope', sans-serif; }

/* Preview window */
.op-preview { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.op-pw-bar { background: var(--navy); padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.op-pw-dots { display: flex; gap: 6px; }
.op-pw-dot { width: 10px; height: 10px; border-radius: 50%; }
.op-pwd-r{background:#ff5f57;} .op-pwd-y{background:#ffbd2e;} .op-pwd-g{background:#28ca41;}
.op-pw-url {
  flex: 1; background: rgba(255,255,255,0.07); border-radius: 6px;
  padding: 6px 12px; font-size: 12px; color: rgba(255,255,255,0.4); font-family: monospace;
}
.op-pw-body { background: var(--navy); padding: 28px 24px; }
.op-pw-agent { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.op-pw-ava {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.op-pw-name { font-weight: 700; font-size: 18px; color: var(--white); font-family: 'Manrope', sans-serif; }
.op-pw-sub  { font-size: 13px; color: rgba(255,255,255,0.4); font-family: 'Manrope', sans-serif; }
.op-pw-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.op-pw-stat { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 12px 8px; text-align: center; }
.op-pw-stat-n { font-size: 17px; font-weight: 800; color: var(--gold); display: block; font-family: 'Manrope', sans-serif; }
.op-pw-stat-l { font-size: 10px; color: rgba(255,255,255,0.3); text-transform: uppercase; font-family: 'Manrope', sans-serif; }
.op-pw-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.op-pw-chip {
  background: rgba(201,168,76,0.12); color: var(--gold-light);
  padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; font-family: 'Manrope', sans-serif;
}
.op-pw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.op-pw-btn { padding: 11px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; color: var(--white); font-family: 'Manrope', sans-serif; }
.op-pw-btn-wa{background:#25d366;} .op-pw-btn-tg{background:#0088cc;}

/* ── MAIN CTA ── */
.op-main-cta {
  background: var(--navy); padding: 100px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.op-main-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.op-main-cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.op-main-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 50px); font-weight: 700;
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.op-main-cta-title em { font-style: normal; color: var(--gold); }
.op-main-cta-sub {
  font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.75;
  margin-bottom: 44px; font-family: 'Manrope', sans-serif;
}

/* ── MAIN FOOTER ── */
.op-main-footer {
  background: #080f1a; padding: 36px 80px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.op-main-footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); }
.op-main-footer-logo span { color: var(--gold); }
.op-footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); font-family: 'Manrope', sans-serif; }
.op-footer-links { display: flex; gap: 24px; }
.op-footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color .2s; font-family: 'Manrope', sans-serif; }
.op-footer-links a:visited { color: rgba(255,255,255,0.35) !important; }
.op-footer-links a:hover { color: var(--gold); text-decoration: none; }


/* ═══════════════════════════════════════════════════════════
   СТРАНИЦА АГЕНТА (page-agent.php)
   ═══════════════════════════════════════════════════════════ */

/* ── AGENT HERO ── */
.op-agent-hero {
  background: var(--navy);
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.op-agent-hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.op-agent-content {
  padding: 80px 60px 80px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}

.op-agent-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light); padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 500; letter-spacing: .05em;
  margin-bottom: 32px; width: fit-content; font-family: 'Manrope', sans-serif;
  animation: opFadeUp .6s ease both .1s;
}

.op-agent-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: 12px;
  animation: opFadeUp .6s ease both .2s;
}

.op-agent-title {
  font-size: 16px; color: var(--gold); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px;
  font-family: 'Manrope', sans-serif;
  animation: opFadeUp .6s ease both .3s;
}

.op-agent-desc {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.8; max-width: 440px; margin-bottom: 48px;
  font-family: 'Manrope', sans-serif;
  animation: opFadeUp .6s ease both .4s;
}

.op-agent-stats {
  display: flex; gap: 40px; margin-bottom: 48px;
  animation: opFadeUp .6s ease both .5s;
}
.op-agent-stat { display: flex; flex-direction: column; }
.op-agent-stat-num {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.op-agent-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; font-family: 'Manrope', sans-serif; }

.op-agent-contacts {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: opFadeUp .6s ease both .6s;
}



/* Правая колонка — портрет на всю высоту */
.op-agent-photo-side {
  position: relative;
  overflow: hidden;
  z-index: 2;
  min-height: 100vh;
}

.op-agent-photo-side img.op-agent-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.op-agent-photo-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, var(--navy) 0%, transparent 30%),
    linear-gradient(to top,   var(--navy) 0%, transparent 25%);
}

.op-agent-photo-inner {
  position: relative; z-index: 2; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}

.op-agent-photo-circle {
  width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.04));
  border: 2px dashed rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: rgba(201,168,76,0.5); font-size: 14px; text-align: center;
  font-family: 'Manrope', sans-serif;
}

/* Когда фото есть — скрываем фолбэк */
.op-agent-photo-side.has-photo .op-agent-photo-inner {
  display: none;
}

/* ── AGENT SERVICES ── */
.op-agent-services { padding: 100px 80px; max-width: 1400px; margin: 0 auto; }
.op-agent-services .op-s-title { margin-bottom: 60px; }

.op-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.op-service-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 36px;
  box-shadow: var(--shadow); transition: all .3s;
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(15,28,46,0.06);
}
.op-service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.op-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.op-service-card:hover::after { transform: scaleX(1); }
.op-service-card.op-dark { background: var(--navy); }

.op-service-icon {
  width: 56px; height: 56px; background: linear-gradient(135deg,#f0e8d4,#faf6ef);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 24px;
}
.op-service-card.op-dark .op-service-icon { background: rgba(201,168,76,0.15); }

.op-service-name {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  color: var(--navy); margin-bottom: 12px;
}
.op-service-card.op-dark .op-service-name { color: var(--white); }

.op-service-desc { font-size: 14px; color: var(--muted); line-height: 1.7; font-family: 'Manrope', sans-serif; }
.op-service-card.op-dark .op-service-desc { color: rgba(255,255,255,0.65); }

/* ── AGENT CALC ── */
.op-calc { background: var(--navy); padding: 100px 80px; }
.op-calc-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.op-calc-info .op-s-title { color: var(--white); }

.op-calc-promo { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.op-promo-item { display: flex; align-items: flex-start; gap: 16px; }
.op-promo-icon {
  width: 44px; height: 44px; background: rgba(201,168,76,0.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.op-promo-text h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; font-family: 'Manrope', sans-serif; }
.op-promo-text p  { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; font-family: 'Manrope', sans-serif; }

.op-calc-form {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 24px; padding: 48px 44px;
}

.op-calc-tabs {
  display: flex; gap: 4px; background: rgba(255,255,255,0.06);
  border-radius: 12px; padding: 4px; margin-bottom: 36px; overflow-x: auto;
}
.op-calc-tab {
  flex: 1; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45);
  cursor: pointer; text-align: center; transition: all .2s;
  border: none; background: none; font-family: 'Manrope', sans-serif; white-space: nowrap;
}
.op-calc-tab.active { background: var(--gold); color: var(--navy); }

.op-form-group { margin-bottom: 20px; }
.op-form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.5); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px; font-family: 'Manrope', sans-serif;
}
.op-form-select, .op-form-input {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: var(--white); font-family: 'Manrope', sans-serif;
  font-size: 15px; transition: border-color .2s; outline: none; appearance: none;
}
.op-form-select:focus, .op-form-input:focus { border-color: var(--gold); }
.op-form-select option { background: var(--navy-mid); color: var(--white); }
.op-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.op-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.op-toggle-item { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.op-toggle-item input { display: none; }
.op-toggle-sw {
  width: 40px; height: 22px; background: rgba(255,255,255,0.1);
  border-radius: 100px; position: relative; transition: background .2s; flex-shrink: 0;
}
.op-toggle-sw::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: rgba(255,255,255,0.5);
  border-radius: 50%; transition: all .2s;
}
.op-toggle-item input:checked + .op-toggle-sw { background: var(--gold); }
.op-toggle-item input:checked + .op-toggle-sw::after { left: 21px; background: var(--white); }
.op-toggle-label { font-size: 13px; color: rgba(255,255,255,0.65); font-family: 'Manrope', sans-serif; }

.op-btn-calc {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700;
  border: none; border-radius: 12px; cursor: pointer; letter-spacing: .05em;
  transition: all .25s; text-transform: uppercase;
}
.op-btn-calc:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,0.4); }

/* ── AGENT TRUST ── */
.op-agent-trust { padding: 100px 80px; max-width: 1400px; margin: 0 auto; }
.op-trust-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }

.op-trust-features { display: flex; flex-direction: column; gap: 32px; }
.op-trust-feature { display: flex; gap: 20px; align-items: flex-start; }
.op-feature-num {
  font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700;
  color: var(--cream-dark); line-height: 1; min-width: 56px;
}
.op-feature-body h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: 'Manrope', sans-serif; }
.op-feature-body p  { font-size: 14px; color: var(--muted); line-height: 1.7; font-family: 'Manrope', sans-serif; }

.op-trust-card {
  background: var(--navy); border-radius: 24px; padding: 48px 40px;
  color: var(--white); position: relative; overflow: hidden;
}
.op-trust-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
}

/* ── PARTNERS ── */
.op-partners { background: var(--cream-dark); padding: 60px 80px; }
.op-partners-inner { max-width: 1240px; margin: 0 auto; }
.op-partners-label {
  text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 36px; font-family: 'Manrope', sans-serif;
}
.op-partners-row { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.op-partner-badge {
  padding: 12px 28px; background: var(--white); border-radius: 100px;
  font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: .05em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); font-family: 'Manrope', sans-serif;
}

/* ── AGENT FOOTER ── */
.op-agent-footer {
  background: var(--navy); padding: 60px 80px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.op-agent-footer-brand {
  font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white);
}
.op-agent-footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); font-family: 'Manrope', sans-serif; }
.op-agent-footer-links { display: flex; gap: 24px; }
.op-agent-footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; font-family: 'Manrope', sans-serif; }
.op-agent-footer-links a:visited { color: rgba(255,255,255,0.5) !important; }
.op-agent-footer-links a:hover { color: var(--gold); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */
@keyframes opFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes opFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Виджет калькуляторов ── */
.op-calc-widget-wrap {
 /* background: rgba(255,255,255,0.04); */
   background: var(--cream);
  border: 1px solid rgba(201,168,76,0.2); 
  border-radius: 24px;
  overflow: hidden;
  padding: 32px;
  content-visibility: auto;
  contain-intrinsic-size: 500px; /* Примерная высота виджета */
}

.op-calc-widget-wrap .tabs-wrapper {
  padding: 0;
}

.op-calc-widget-wrap .tabs-title {
  display: none;
}

.op-calc-widget-wrap .tabs-buttons {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.05);
  /* Скругляем саму панель подложки */
  border-radius: 16px; 
  padding: 6px;
  margin: 0 0 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.03);
  /* Убираем эффект «утопленности», если он кажется слишком резким, 
     либо делаем его очень мягким */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); 
}

.op-calc-widget-wrap .tabs-buttons button {
  flex: 1;
  padding: 12px 14px;
  /* Скругляем сами кнопки внутри, чтобы они повторяли форму подложки */
  border-radius: 12px; 
  font-size: 13px;
  font-weight: 600;
  color: rgba(26, 31, 38, 0.6);
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  border: none;
  background: none;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
}

.op-calc-widget-wrap .tabs-buttons button.active {
  background: var(--gold);
  color: #1a1f26;
  /* Добавляем тень только активной кнопке, чтобы она визуально «лежала сверху» */
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}

.op-calc-widget-wrap .tabs-buttons button:hover:not(.active) {
  /* Цвет при наведении на неактивную вкладку */
  color: rgba(26, 31, 38, 0.8);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4), 
              0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

.op-calc-widget-wrap #rosstrah-property-widget,
.op-calc-widget-wrap #rosstrah-mortgage-widget,
.op-calc-widget-wrap #kasko-widget-container {
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .op-calc-widget-wrap .tabs-buttons {
    flex-wrap: wrap;
  }
  .op-calc-widget-wrap .tab-block {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .op-nav { padding: 0 40px; }
  .op-hero { grid-template-columns: 1fr; min-height: auto; }
  .op-hero-content { padding: 72px 40px 48px; }
  .op-hero-visual { display: none; }
  .op-values { padding: 72px 40px; }
  .op-how { padding: 72px 40px; }
  .op-steps { grid-template-columns: repeat(2,1fr); }
  .op-steps::before { display: none; }
  .op-example { padding: 72px 40px; gap: 48px; }
  .op-main-cta { padding: 72px 40px; }
  .op-main-footer { padding: 32px 40px; }
  .op-agent-hero { grid-template-columns: 1fr; min-height: auto; }
  .op-agent-content { padding: 60px 40px 40px; }
  .op-agent-services { padding: 72px 40px; }
  .op-calc { padding: 72px 40px; }
  .op-calc-inner { grid-template-columns: 1fr; gap: 40px; }
  .op-agent-trust { padding: 72px 40px; }
  .op-trust-grid { grid-template-columns: 1fr; }
  .op-partners { padding: 40px; }
  .op-agent-footer { padding: 40px; }
}

@media (max-width: 768px) {
  .op-nav { padding: 0 24px; }
  .op-nav-links { display: none; }
  .op-hero-content { padding: 56px 24px 40px; }
  .op-values { padding: 64px 24px; }
  .op-values-grid { grid-template-columns: 1fr; }
  .op-how { padding: 64px 24px; }
  .op-steps { grid-template-columns: 1fr; }
  .op-example { grid-template-columns: 1fr; padding: 64px 24px; }
  .op-main-cta { padding: 64px 24px; }
  .op-main-footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .op-agent-content { padding: 40px 24px; }
  .op-agent-stats { gap: 24px; }
  .op-agent-contacts { flex-direction: column; }
  .op-agent-contacts .op-btn { justify-content: center; }
  .op-services-grid { grid-template-columns: 1fr; }
  .op-agent-services { padding: 64px 24px; }
  .op-calc { padding: 64px 24px; }
  .op-calc-form { padding: 32px 24px; }
  .op-form-row { grid-template-columns: 1fr; }
  .op-toggles { grid-template-columns: 1fr; }
  .op-agent-trust { padding: 64px 24px; }
  .op-partners { padding: 40px 24px; }
  .op-agent-footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
  .op-agent-photo-side {
  display: block;
  min-height: 70vw;
}
}
@media (max-width: 768px) {
  .op-calc-widget-wrap {
    padding: 20px 16px;
  }
  .op-calc-widget-wrap .tabs-buttons {
    flex-wrap: wrap;
  }
  .op-agent-photo-side {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 32px 0 40px;
  background: transparent;
}

.op-agent-photo-side img.op-agent-portrait {
  position: static;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(201,168,76,0.4);
  box-shadow: 0 0 0 8px rgba(201,168,76,0.08);
}

.op-agent-photo-bg {
  display: none;
}
}
/* ── ДОПОЛНИТЕЛЬНЫЕ ВИДЫ СТРАХОВАНИЯ ── */
.op-extra-insurance {
  background: var(--cream);
  padding: 100px 80px;
}

.op-extra-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.op-extra-insurance .op-s-title { color: var(--navy); margin-bottom: 16px; }

.op-extra-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  font-family: 'Manrope', sans-serif;
}

.op-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.op-extra-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,28,46,0.06);
  transition: all .3s;
  text-align: center;
}

.op-extra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.op-extra-icon { font-size: 28px; }

.op-extra-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Manrope', sans-serif;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .op-extra-insurance { padding: 72px 40px; }
  .op-extra-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .op-extra-insurance { padding: 64px 24px; }
  .op-extra-grid { grid-template-columns: repeat(2, 1fr); }
}

.op-btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.op-agent-contacts a.op-btn-outline-navy:visited {
  color: var(--navy) !important;
}

.op-btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}


/* ── Rosstrah widget force override ── */
#rosstrah-property-widget *,
#rosstrah-mortgage-widget * {
  font-family: 'Manrope', sans-serif !important;
}

#rosstrah-property-widget .MuiOutlinedInput-root,
#rosstrah-mortgage-widget .MuiOutlinedInput-root {
  background: rgba(255,255,255,0.06) !important;
  border-radius: 12px !important;
  color: #fff !important;
}

#rosstrah-property-widget .MuiOutlinedInput-notchedOutline,
#rosstrah-mortgage-widget .MuiOutlinedInput-notchedOutline {
  border-color: rgba(201,168,76,0.3) !important;
}

#rosstrah-property-widget .MuiInputBase-input,
#rosstrah-mortgage-widget .MuiInputBase-input {
  color: #fff !important;
}

#rosstrah-property-widget .MuiFormLabel-root,
#rosstrah-mortgage-widget .MuiFormLabel-root {
  color: rgba(255,255,255,0.5) !important;
}

#rosstrah-property-widget .MuiSwitch-track,
#rosstrah-mortgage-widget .MuiSwitch-track {
  background-color: rgba(255,255,255,0.15) !important;
  opacity: 1 !important;
}

#rosstrah-property-widget .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track,
#rosstrah-mortgage-widget .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
  background-color: #c9a84c !important;
  opacity: 1 !important;
}

#rosstrah-property-widget .MuiFormControlLabel-label,
#rosstrah-mortgage-widget .MuiFormControlLabel-label {
  color: rgba(255,255,255,0.8) !important;
}

#rosstrah-property-widget .MuiButton-containedPrimary,
#rosstrah-mortgage-widget .MuiButton-containedPrimary {
  background: #c9a84c !important;
  color: #0f1c2e !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  text-transform: none !important;
  font-size: 15px !important;
}

#rosstrah-property-widget .MuiButton-containedPrimary:hover,
#rosstrah-mortgage-widget .MuiButton-containedPrimary:hover {
  background: #e8c97a !important;
}

#rosstrah-property-widget .MuiAutocomplete-popupIndicator svg,
#rosstrah-mortgage-widget .MuiAutocomplete-popupIndicator svg {
  fill: rgba(201,168,76,0.7) !important;
}

/* Фон самого виджета */
#rosstrah-property-widget,
#rosstrah-mortgage-widget {
  background: transparent !important;
}

icon {
  width: 2em;
  height: 2em;
}

.iconlp {
  width: 1em;
  height: 1em;
}

/* ═══════════════════════════════════════════════════════════
   ОТЗЫВЫ КЛИЕНТОВ (page-agent.php)
   ═══════════════════════════════════════════════════════════ */
.op-reviews { background: var(--cream); padding: 100px 80px; }
.op-reviews-inner { max-width: 1240px; margin: 0 auto; }
.op-reviews .op-s-title { color: var(--navy); margin-bottom: 60px; }

.op-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.op-review-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(15,28,46,0.06);
  display: flex; flex-direction: column; gap: 16px; transition: all .3s;
}
.op-review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.op-review-stars { color: var(--gold); font-size: 18px; letter-spacing: 3px; line-height: 1; }
.op-review-text { font-size: 15px; color: var(--text); line-height: 1.7; font-family: 'Manrope', sans-serif; flex: 1; }

.op-review-author { display: flex; align-items: center; gap: 12px; }
.op-review-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: var(--navy); flex-shrink: 0;
  font-family: 'Manrope', sans-serif; text-transform: uppercase;
}
.op-review-name { font-weight: 700; font-size: 14px; color: var(--navy); font-family: 'Manrope', sans-serif; }
.op-review-sub  { font-size: 13px; color: var(--muted); font-family: 'Manrope', sans-serif; }

/* ═══════════════════════════════════════════════════════════
   FAQ (page-agent.php)
   ═══════════════════════════════════════════════════════════ */
.op-faq { background: var(--white); padding: 100px 80px; }
.op-faq-inner { max-width: 820px; margin: 0 auto; }
.op-faq .op-s-title { color: var(--navy); margin-bottom: 40px; }

.op-faq-list { display: flex; flex-direction: column; gap: 14px; }
.op-faq-item {
  background: var(--cream); border: 1px solid rgba(15,28,46,0.06);
  border-radius: 14px; padding: 0 24px; transition: border-color .25s, box-shadow .25s;
}
.op-faq-item[open] { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow); }

.op-faq-q {
  font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy);
  padding: 22px 32px 22px 0; cursor: pointer; list-style: none; position: relative;
}
.op-faq-q::-webkit-details-marker { display: none; }
.op-faq-q::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--gold); font-weight: 400; line-height: 1; transition: transform .25s;
}
.op-faq-item[open] .op-faq-q::after { content: '−'; }

.op-faq-a {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  padding: 0 0 22px; font-family: 'Manrope', sans-serif;
}

@media (max-width: 1024px) {
  .op-reviews { padding: 72px 40px; }
  .op-faq { padding: 72px 40px; }
}
@media (max-width: 768px) {
  .op-reviews { padding: 64px 24px; }
  .op-faq { padding: 64px 24px; }
}
