/*
Theme Name: Дом Для Своих
Theme URI: https://domsvoih.ru
Author: Fond Dom Dlya Svoikh
Description: Официальный сайт фонда помощи женщинам «Дом Для Своих»
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: domsvoyih
*/

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --orange: #E8781A;
  --orange-light: #F4921F;
  --orange-dark: #c45f00;
  --black: #0d0d0d;
  --black-mid: #1a1a1a;
  --black-soft: #222222;
  --white: #ffffff;
  --cream: #f8f5f0;
  --gray-bg: #f4f1ed;
  --gray-light: #ede9e4;
  --gray-border: #ddd8d2;
  --gray-text: #555;
  --gray-muted: #888;
  --font-heading: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --transition: 0.25s ease;
  --container: 1240px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; color: var(--black); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--black);
  padding: 7px 0;
  border-bottom: 1px solid #2a2a2a;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { font-size: 11px; color: #666; letter-spacing: 0.02em; }
.topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.topbar-right a { font-size: 12px; color: #aaa; transition: color var(--transition); }
.topbar-right a:hover { color: var(--orange); }
.topbar-social { display: flex; gap: 0.75rem; }

/* ===== HEADER ===== */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--orange);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* LOGO */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon { width: 42px; height: 42px; }
.logo-textblock { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* NAV */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav ul li a {
  font-size: 12px;
  font-weight: 600;
  color: #ccc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--orange);
  background: rgba(232,120,26,0.08);
}
.header-tagline {
  font-size: 11px;
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--black);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Фото женщины — занимает правую половину, обрезается точно */
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Затемняющий градиент слева — делает текст читаемым */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,10,10,1) 0%,
    rgba(10,10,10,0.97) 30%,
    rgba(10,10,10,0.75) 50%,
    rgba(10,10,10,0.15) 75%,
    rgba(10,10,10,0) 100%
  );
  z-index: 1;
}

/* Лента поверх фото справа */
.hero-ribbon {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.hero .container { position: relative; z-index: 3; padding-top: 4rem; padding-bottom: 4rem; }
.hero-content { max-width: 600px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.eyebrow-stripe {
  width: 36px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.hero-title em {
  color: var(--orange);
  font-style: normal;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.hero-btn:hover {
  background: var(--orange);
  color: var(--white);
}


/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-dark {
  background: var(--black);
  padding: 4rem 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-mark {
  width: 4px;
  height: 28px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}
.section-dark .section-title { color: var(--white); }
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.75; }

/* ===== VIDEO + NEWS GRID ===== */
.video-news-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2a2a2a;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.vk-video-link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  color: #fff;
  gap: 12px;
  font-size: 13px;
  color: #aaa;
  transition: background var(--transition);
}
.vk-video-link:hover { background: #1a1a1a; }
.vk-play-btn {
  width: 64px;
  height: 64px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NEWS SIDEBAR */
.news-sidebar { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
}
.news-item:last-child { border-bottom: none; }
.news-thumb,
.news-thumb-placeholder {
  width: 80px;
  min-width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 4px;
}
.news-item-title a:hover { color: var(--orange); }
.news-item-date { font-size: 11px; color: var(--gray-muted); }

/* ===== EVENTS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.event-img,
.event-img-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-body { padding: 1rem; }
.event-date {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}
.event-day {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.event-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.4;
}
.event-desc { font-size: 12px; color: var(--gray-text); line-height: 1.5; }

/* ===== ABOUT + PILLARS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 15px;
}
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 10px 22px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition);
}
.about-btn:hover { background: var(--orange); color: var(--white); }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pillar {
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,120,26,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.pillar-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 6px;
}
.pillar-desc { font-size: 12px; color: var(--gray-text); line-height: 1.55; }

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  background: var(--black);
  padding: 4rem 0;
  overflow: hidden;
}

/* CTA ribbon SVG styles removed — using background image instead */

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.cta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.cta-heart {
  width: 52px;
  height: 52px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-heart svg { fill: none; stroke: var(--orange); stroke-width: 2; }
.cta-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.cta-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
}

/* ===== CONTACTS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.map-frame {
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  background: var(--gray-light);
}
.map-frame iframe { width: 100%; height: 100%; border: none; }

.contacts-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon-wrap {
  width: 38px;
  height: 38px;
  background: rgba(232,120,26,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-muted); margin-bottom: 2px; }
.contact-value { font-size: 14px; font-weight: 500; color: var(--black); }
.contact-value a:hover { color: var(--orange); }

.social-row { display: flex; gap: 8px; margin-top: 0.5rem; flex-wrap: wrap; }
.social-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  padding: 6px 14px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: var(--orange); color: var(--white); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  border-top: 2px solid var(--orange);
  padding: 3rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-logo .logo-name { font-size: 14px; }
.footer-desc { font-size: 13px; color: #777; line-height: 1.65; margin-top: 12px; max-width: 300px; }
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links li { font-size: 13px; color: #888; }
.footer-links li a { color: #888; transition: color var(--transition); }
.footer-links li a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.footer-copy { font-size: 11px; color: #555; }
.footer-legal { font-size: 11px; }
.footer-legal a { color: #555; transition: color var(--transition); }
.footer-legal a:hover { color: var(--orange); }

/* ===== DIVIDER ===== */
.stripe-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, #c45f00 50%, var(--orange) 100%);
}

/* ===== ARCHIVE & SINGLE ===== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.post-card-img,
.post-card-img-placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-body { padding: 1.25rem; }
.post-card-date { font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.post-card-title { font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 8px; line-height: 1.4; }
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt { font-size: 13px; color: var(--gray-text); line-height: 1.6; }

/* SINGLE POST */
.single-content { max-width: 780px; margin: 0 auto; padding: 3rem 2rem; }
.single-content h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; }
.single-content .post-meta { font-size: 12px; color: var(--gray-muted); margin-bottom: 2rem; }
.single-content .post-thumbnail { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; overflow: hidden; }
.single-content .post-thumbnail img { width: 100%; }
.single-content .post-body p { font-size: 15px; color: var(--gray-text); line-height: 1.8; margin-bottom: 1.25rem; }
.single-content .post-body h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 2rem 0 0.75rem; }
.single-content .back-link { font-size: 13px; color: var(--orange); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.single-content .back-link:hover { text-decoration: underline; }

/* PAGINATION */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a,
.pagination span {
  width: 38px; height: 38px; border-radius: 4px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-border); color: var(--black);
  transition: all var(--transition);
}
.pagination a:hover,
.pagination .current { border-color: var(--orange); background: var(--orange); color: var(--white); }

/* PAGE TEMPLATE */
.page-content { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.page-content h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; }
.page-content .wp-block-paragraph,
.page-content p { font-size: 15px; color: var(--gray-text); line-height: 1.8; margin-bottom: 1.25rem; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .video-news-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-tagline { display: none; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 74px;
    background: var(--black);
    z-index: 200;
    padding: 2rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 16px;
  }
  .burger { display: flex; }
  .hero { min-height: 420px; }
  .hero-photo { width: 100%; opacity: 0.4; }
  .hero-ribbon { width: 70%; opacity: 0.25; }
  .events-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; gap: 1.5rem; }
  .archive-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}
