/*
Theme Name: ЦАБ Охрана Рязань
Theme URI: https://ohrana-rzn.ru
Author: ЦАБ
Author URI: https://ohrana-rzn.ru
Description: Сайт-визитка охранного предприятия "Центральное агентство безопасности", г. Рязань
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cab-security
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
  overflow-x: hidden;
  line-height: 1.6;
}

:root {
  --black:   #0a0a0a;
  --dark:    #111318;
  --card:    #161a22;
  --border:  #1e2430;
  --accent:  #c8a84b;
  --accent2: #e8c96b;
  --text:    #e8e8e8;
  --muted:   #7a8090;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
ul { list-style: none; }

/* === NOISE TEXTURE === */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* === NAVIGATION === */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-branding { display: flex; align-items: center; gap: 14px; }

.brand-hex {
  width: 42px; height: 42px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-hex svg { width: 22px; height: 22px; fill: var(--black); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-abbr {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; color: var(--accent); letter-spacing: 3px;
}
.brand-full {
  font-size: 9px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

#site-navigation ul {
  display: flex; gap: 32px;
}
#site-navigation a {
  color: var(--muted); font-size: 12px;
  font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
}
#site-navigation a:hover { color: var(--accent); }

.header-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; color: var(--accent); letter-spacing: 1px;
}

/* === BUTTONS === */
.btn, .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; border: none; transition: all .25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: var(--black);
}
.btn-primary:hover {
  background: var(--accent2); color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,168,75,.3);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(200,168,75,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(200,168,75,.04) 0%, transparent 60%),
    linear-gradient(160deg, #0d1017 0%, #0a0a0a 50%, #0d0f12 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 60px,
    rgba(200,168,75,.015) 60px, rgba(200,168,75,.015) 61px
  );
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,168,75,.1);
  border: 1px solid rgba(200,168,75,.3);
  padding: 6px 16px; border-radius: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 32px;
  animation: fadeUp .6s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(54px, 8vw, 100px);
  line-height: .9; letter-spacing: 2px;
  margin-bottom: 24px;
  animation: fadeUp .6s .1s ease both;
}
.hero-title span { color: var(--accent); display: block; }

.hero-subtitle {
  font-size: 15px; font-weight: 300;
  color: var(--muted); line-height: 1.8;
  max-width: 500px; margin-bottom: 48px;
  animation: fadeUp .6s .2s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .6s .3s ease both;
}

/* === STATS BAR === */
.stats-bar {
  position: relative; z-index: 2;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background .3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(200,168,75,.04); }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 8px;
}

/* === SECTIONS === */
.section-inner {
  max-width: 1200px; margin: 0 auto; padding: 100px 5%;
}
.section-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px,5vw,64px);
  letter-spacing: 2px; line-height: 1; margin-bottom: 60px;
}

/* === SERVICES === */
#services-section { background: var(--dark); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--card); padding: 48px 36px;
  position: relative; overflow: hidden; transition: all .3s;
}
.service-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover { background: #1a1f2a; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(200,168,75,.08);
  border: 1px solid rgba(200,168,75,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; transition: all .3s;
}
.service-card:hover .service-icon {
  background: rgba(200,168,75,.15); border-color: var(--accent);
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.service-num {
  position: absolute; top: 32px; right: 32px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px; color: rgba(200,168,75,.06); line-height: 1;
}
.service-card:hover .service-num { color: rgba(200,168,75,.1); }
.service-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.service-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.8; }

/* === ABOUT === */
#about-section { background: var(--black); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; aspect-ratio: 1; max-width: 480px; }
.about-hexagon {
  width: 100%; height: 100%;
  background: var(--card);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-hexagon::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,168,75,.08) 0%, transparent 70%);
}
.about-hexagon-inner { text-align: center; position: relative; z-index: 2; padding: 40px; }
.about-shield { width: 80px; height: 80px; margin: 0 auto 20px; }
.about-shield svg { width: 100%; height: 100%; }
.about-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px; color: var(--accent); line-height: 1; display: block;
}
.about-year-label { font-size: 11px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; }
.about-text p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.9; margin-bottom: 20px; }
.about-list { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.about-list li::before { content: '◆'; color: var(--accent); font-size: 8px; margin-top: 4px; flex-shrink: 0; }

/* === LICENSE BAR === */
.license-bar {
  background: rgba(200,168,75,.06);
  border-top: 1px solid rgba(200,168,75,.15);
  border-bottom: 1px solid rgba(200,168,75,.15);
  padding: 14px 5%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
}
.license-bar::before, .license-bar::after { content: '●'; font-size: 6px; }

/* === CONTACTS === */
#contacts-section { background: var(--dark); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 28px 32px; display: flex; align-items: center; gap: 20px;
  transition: border-color .25s;
}
.contact-card:hover { border-color: rgba(200,168,75,.3); }
.contact-card-icon {
  width: 44px; height: 44px;
  background: rgba(200,168,75,.08);
  border: 1px solid rgba(200,168,75,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact-card-label { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card-value { font-size: 15px; font-weight: 600; color: var(--text); }

/* === CONTACT FORM === */
.contact-form-wrap h3 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; margin-bottom: 8px; }
.contact-form-wrap p { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select,
.wpcf7-text, .wpcf7-textarea, .wpcf7-select {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 14px 18px;
  font-family: 'Montserrat', sans-serif; font-size: 13px;
  transition: border-color .25s; outline: none; resize: none; appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { height: 100px; }
.form-submit-btn { width: 100%; justify-content: center; }

/* === FOOTER === */
#colophon {
  background: #060608;
  border-top: 1px solid var(--border);
  padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--accent); letter-spacing: 3px; }
.footer-copy { font-size: 12px; color: var(--muted); }
#footer-navigation ul { display: flex; gap: 24px; }
#footer-navigation a { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
#footer-navigation a:hover { color: var(--accent); }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.4); } }

/* === MOBILE === */
@media (max-width: 900px) {
  #site-navigation { display: none; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 280px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  #colophon { flex-direction: column; text-align: center; }
}
.header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone--secondary {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
/* === WORDPRESS ADMIN BAR === */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

