/*
Theme Name: Pravounion
Theme URI: https://pravounion.ru
Author: Бюро Союз Юристов
Author URI: https://pravounion.ru
Description: Тема для сайта юридической компании «Бюро Союз Юристов». Одностраничный лендинг с разделами: практики, дела, коллегия, отзывы, заявка на консультацию.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4.certs__item
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pravounion
*/

/* ==========================================================================
   Базовый сброс и типографика (перенесено из макета)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  color: #ECE8DF;
  background: #0F1012;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #C2A14E; color: #0F1012; }

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

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

button { font-family: inherit; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 44px; }

/* ==========================================================================
   Интерактивные эффекты из макета
   ========================================================================== */
.svc-row { transition: background .25s, padding-left .25s; }
.svc-row:hover { background: linear-gradient(90deg, rgba(194,161,78,.10), transparent) !important; padding-left: 32px !important; }
.svc-row:hover .svc-num { color: #DCC081 !important; }
.svc-row:hover .svc-arrow { transform: translateX(8px); opacity: 1 !important; color: #DCC081 !important; }

.gold-underline {
  background-image: linear-gradient(#C2A14E,#C2A14E);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s, color .25s;
}
.gold-underline:hover { background-size: 100% 1.5px; }

/* Ссылки навигации (header/footer) — было style-hover="color:#C2A14E;" */
.nav-link { transition: color .2s; }
.nav-link:hover { color: #C2A14E; }

/* Золотые кнопки — было style-hover="background:#DCC081;" */
.btn-gold { transition: background .2s; }
.btn-gold:hover { background: #DCC081; }

/* Ссылки "Написать →" в контактах/футере — было style-hover="color:#DCC081;" */
.msg-link:hover .msg-value { color: #DCC081 !important; }

/* Поля формы — было style-focus="border-color:#C2A14E;" */
.field-input { transition: border-color .2s; }
.field-input:focus { border-color: #C2A14E; }

/* ==========================================================================
   Плейсхолдер для изображений без загруженного фото
   ========================================================================== */
.ph-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #1B1D22, #1B1D22 10px, #202226 10px, #202226 20px);
  border: 1px solid #2A2C32;
  color: #6E6A60;
  font-size: 13px;
  letter-spacing: .3px;
  padding: 16px;
}

.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Шапка сайта
   ========================================================================== */
.site-header {
  background: linear-gradient(100deg, rgba(12,51,39,.92) 0%, rgba(17,37,31,.88) 40%, rgba(15,16,18,.86) 100%);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 19px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.site-logo { display: flex; align-items: baseline; gap: 13px; flex-shrink: 1; min-width: 0; overflow: hidden; }
.site-logo__name { font-family: 'Spectral', serif; font-weight: 500; font-size: 25px; color: #ECE8DF; letter-spacing: .3px; white-space: nowrap; }
.site-logo__name span { color: #C2A14E; }
.site-logo__est { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #6E6A60; white-space: nowrap; }

.nav-drawer { display: flex; align-items: center; min-width: 0; }
.main-nav-wrap { min-width: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: #B8B3A7; white-space: nowrap; list-style: none; }
.main-nav li { display: inline-flex; }
.nav-drawer__contact { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone { font-family: 'Spectral', serif; font-size: 18px; font-weight: 500; color: #ECE8DF; white-space: nowrap; }
.btn { display: inline-block; }
.btn-gold.header-cta { background: #C2A14E; color: #18140A; padding: 11px 22px; font-size: 13.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #ECE8DF;
  cursor: pointer;
  padding: 0;
  margin: -9px;
  flex-shrink: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle__icon-open { display: block; }
.nav-toggle__icon-close { display: none; }
.site-header.is-open .nav-toggle__icon-open { display: none; }
.site-header.is-open .nav-toggle__icon-close { display: block; }

/* ==========================================================================
   Герой
   ========================================================================== */
.hero { position: relative; border-bottom: 1px solid #25272D; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__overlay-1 { position: absolute; inset: 0; background: linear-gradient(90deg, #0F1012 0%, rgba(15,16,18,.92) 42%, rgba(15,16,18,.55) 100%); }
.hero__overlay-2 { position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 110%, rgba(13,110,82,.45) 0%, rgba(13,110,82,.12) 35%, transparent 62%); }
.hero__overlay-3 { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, #0F1012 100%); }
.hero__inner { position: relative; max-width: 1300px; margin: 0 auto; padding: 76px 44px 90px; }
.hero__content { max-width: 720px; }
.hero__eyebrow { font-size: 12.5px; letter-spacing: 4px; text-transform: uppercase; color: #C2A14E; margin-bottom: 34px; display: flex; align-items: center; gap: 16px; }
.hero__title { font-family: 'Spectral', serif; font-weight: 300; font-size: 84px; line-height: 1.03; letter-spacing: -1.5px; color: #F5F1E8; text-wrap: balance; }
.hero__title em { font-style: italic; color: #DCC081; }
.hero__text { font-size: 19.5px; line-height: 1.6; color: #C3BEB2; max-width: 540px; margin-top: 32px; font-weight: 400; }
.hero__actions { display: flex; align-items: center; gap: 20px; margin-top: 42px; flex-wrap: wrap; }
.btn-gold.hero__cta { background: #C2A14E; color: #18140A; padding: 18px 36px; font-size: 15.5px; font-weight: 700; letter-spacing: .3px; }
.hero__link { font-size: 15.5px; font-weight: 600; color: #ECE8DF; display: flex; align-items: center; gap: 9px; }

.hero__stats { position: relative; max-width: 1300px; margin: 0 auto; padding: 0 44px; }
.hero__stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2C2E34; }
.hero__stat { padding: 30px; border-right: 1px solid #2C2E34; }
.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child { border-right: none; }
.hero__stat-num { font-family: 'Spectral', serif; font-size: 42px; font-weight: 400; color: #F5F1E8; line-height: 1; }
.hero__stat-num span { color: #C2A14E; }
.hero__stat-num span.small { font-size: 24px; }
.hero__stat-label { font-size: 13.5px; color: #8E897E; margin-top: 7px; }

/* ==========================================================================
   Услуги
   ========================================================================== */
.services { max-width: 1300px; margin: 0 auto; padding: 110px 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.section-eyebrow { font-size: 12.5px; letter-spacing: 4px; text-transform: uppercase; color: #C2A14E; margin-bottom: 18px; }
.section-title { font-family: 'Spectral', serif; font-weight: 300; font-size: 52px; color: #F5F1E8; letter-spacing: -.8px; }
.section-note { font-size: 15px; color: #8E897E; max-width: 300px; text-align: right; }

.svc-list { border-top: 1px solid #C2A14E; }
.svc-row { display: grid; grid-template-columns: 86px 1fr 1.15fr 40px; gap: 30px; align-items: center; padding: 32px 20px; border-bottom: 1px solid #25272D; }
.svc-list .svc-row:last-child { border-bottom: 1px solid #C2A14E; }
.svc-num { font-family: 'Spectral', serif; font-size: 22px; color: #5E5A50; transition: color .25s; }
.svc-name { font-family: 'Spectral', serif; font-size: 32px; font-weight: 400; color: #F5F1E8; }
.svc-desc { font-size: 16px; line-height: 1.55; color: #9A958A; }
.svc-arrow { font-size: 24px; color: #C2A14E; opacity: .4; transition: all .25s; text-align: right; }

/* ==========================================================================
   Манифест / цитата
   ========================================================================== */
.manifesto { background: linear-gradient(115deg, #0C3327 0%, #13251F 38%, #16171B 72%); border-top: 1px solid #2C4A3E; border-bottom: 1px solid #25272D; }
.manifesto__inner { max-width: 1300px; margin: 0 auto; padding: 100px 44px; display: grid; grid-template-columns: auto 1fr; gap: 70px; align-items: center; }
.manifesto__quote-mark { font-family: 'Spectral', serif; font-size: 150px; color: #C2A14E; line-height: .6; opacity: .5; }
.manifesto__text { font-family: 'Spectral', serif; font-weight: 300; font-size: 38px; line-height: 1.34; color: #F0ECE2; letter-spacing: -.3px; text-wrap: balance; }
.manifesto__author { margin-top: 34px; display: flex; align-items: center; gap: 14px; }
.manifesto__author-line { width: 50px; height: 1px; background: #C2A14E; }
.manifesto__author-name { font-size: 15px; color: #9A958A; }

/* ==========================================================================
   Процесс работы
   ========================================================================== */
.process { max-width: 1300px; margin: 0 auto; padding: 110px 44px; }
.process .section-title { margin-bottom: 52px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.process__step { border-top: 2px solid #2C2E34; padding-top: 24px; }
.process__step--active { border-top-color: #C2A14E; }
.process__step-title { font-family: 'Spectral', serif; font-size: 18px; color: #DCC081; margin-bottom: 14px; }
.process__step-text { font-size: 15.5px; line-height: 1.6; color: #9A958A; }

/* ==========================================================================
   Дела
   ========================================================================== */
.cases { background: #16171B; border-top: 1px solid #25272D; }
.cases__inner { max-width: 1300px; margin: 0 auto; padding: 110px 44px; }
.cases .section-head { margin-bottom: 52px; }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { background: #1B1D22; padding: 40px 36px; border: 1px solid #2A2C32; }
.case-card__tag { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #C2A14E; }
.case-card__num { font-family: 'Spectral', serif; font-size: 50px; font-weight: 400; color: #F5F1E8; margin: 20px 0 4px; }
.case-card__result { font-size: 14.5px; color: #DCC081; margin-bottom: 18px; }
.case-card__text { font-size: 15px; line-height: 1.6; color: #9A958A; }

/* ==========================================================================
   Команда
   ========================================================================== */
.team { max-width: 1300px; margin: 0 auto; padding: 110px 44px; }
.team .section-head { margin-bottom: 52px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card__photo { position: relative; width: 100%; height: 340px; overflow: hidden; }
.team-card__photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 -60px 60px -30px #0F1012; pointer-events: none; }
.team-card__name { font-family: 'Spectral', serif; font-size: 24px; color: #F5F1E8; margin: 20px 0 3px; }
.team-card__role { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: #C2A14E; margin-bottom: 9px; }
.team-card__note { font-size: 14.5px; line-height: 1.5; color: #8E897E; }

.certs { margin-top: 64px; padding-top: 48px; border-top: 1px solid #25272D; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.certs__intro { flex: 1.3 1 260px; }
.certs__intro-title { font-family: 'Spectral', serif; font-size: 26px; color: #F5F1E8; margin-bottom: 10px; }
.certs__intro-text { font-size: 15px; line-height: 1.6; color: #8E897E; }
.certs__item { flex: 1 1 180px; height: 240px; overflow: hidden; }

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews { background: #16171B; border-top: 1px solid #25272D; }
.reviews__inner { max-width: 1300px; margin: 0 auto; padding: 110px 44px; }
.reviews .section-title { margin-bottom: 52px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card { background: #1B1D22; border: 1px solid #2A2C32; padding: 40px 36px; display: flex; flex-direction: column; }
.review-card__stars { color: #C2A14E; font-size: 16px; letter-spacing: 3px; margin-bottom: 22px; }
.review-card__text { font-family: 'Spectral', serif; font-size: 20px; line-height: 1.5; color: #E4E0D6; margin-bottom: 28px; flex: 1; font-weight: 300; }
.review-card__author { display: flex; align-items: center; gap: 13px; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: #33353B; flex-shrink: 0; }
.review-card__name { font-weight: 700; color: #ECE8DF; }
.review-card__role { font-size: 13px; color: #8E897E; }

/* ==========================================================================
   Контакты / форма заявки
   ========================================================================== */
.contact { border-top: 1px solid #25272D; background: radial-gradient(90% 120% at 0% 0%, rgba(13,110,82,.28) 0%, rgba(13,110,82,.06) 38%, transparent 64%); }
.contact__inner { max-width: 1300px; margin: 0 auto; padding: 110px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact__eyebrow { font-size: 12.5px; letter-spacing: 4px; text-transform: uppercase; color: #C2A14E; margin-bottom: 26px; }
.contact__title { font-family: 'Spectral', serif; font-weight: 300; font-size: 56px; line-height: 1.08; color: #F5F1E8; letter-spacing: -1px; }
.contact__text { font-size: 17px; line-height: 1.6; color: #9A958A; margin: 28px 0 46px; max-width: 420px; }
.contact__phone { display: block; border-top: 1px solid #2C2E34; padding: 24px 0; }
.contact__phone-label, .msg-label { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: #8E897E; }
.contact__phone-value { display: block; font-family: 'Spectral', serif; font-size: 32px; color: #F5F1E8; margin-top: 6px; }
.contact__msgs { border-top: 1px solid #2C2E34; border-bottom: 1px solid #2C2E34; padding: 24px 0; display: flex; gap: 44px; flex-wrap: wrap; }
.msg-value { display: block; font-size: 17px; color: #ECE8DF; margin-top: 6px; transition: color .2s; }
.contact__address { font-size: 14px; color: #6E6A60; margin-top: 24px; }

.contact__form-wrap { background: #16171B; border: 1px solid #2A2C32; padding: 50px 46px; }

.lead-form { display: flex; flex-direction: column; gap: 17px; }
.lead-form__field label { display: block; font-size: 12.5px; letter-spacing: .5px; color: #9A958A; margin-bottom: 8px; }
.lead-form__field .optional { color: #6E6A60; }
.field-input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #34363C;
  background: #0F1012;
  font-size: 15.5px;
  font-family: 'Manrope', sans-serif;
  color: #ECE8DF;
  outline: none;
}
select.field-input option { background: #16171B; }
textarea.field-input { resize: vertical; }
.lead-form__submit {
  background: #C2A14E;
  color: #18140A;
  padding: 17px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  letter-spacing: .3px;
}
.lead-form__submit:disabled { opacity: .6; cursor: default; }
.lead-form__legal { font-size: 12.5px; line-height: 1.5; color: #6E6A60; text-align: center; }
.lead-form__error { font-size: 13.5px; color: #E07A5F; text-align: center; display: none; }
.lead-form__error.is-visible { display: block; }

.lead-success { height: 100%; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 400px; }
.lead-success.is-visible { display: flex; }
.lead-success__icon { width: 66px; height: 66px; border-radius: 50%; background: #C2A14E; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.lead-success__title { font-family: 'Spectral', serif; font-size: 30px; color: #F5F1E8; margin-bottom: 12px; }
.lead-success__text { font-size: 16px; line-height: 1.6; color: #9A958A; max-width: 320px; }
.lead-success__reset { margin-top: 26px; background: none; border: none; color: #DCC081; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Manrope', sans-serif; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer { background: #0B0C0E; color: #807B71; padding: 60px 0 30px; border-top: 1px solid #25272D; }
.site-footer__top { max-width: 1300px; margin: 0 auto; padding: 0 44px 42px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; border-bottom: 1px solid #1E2025; }
.site-footer__brand { max-width: 320px; }
.site-footer__logo { font-family: 'Spectral', serif; font-weight: 500; font-size: 24px; color: #F5F1E8; }
.site-footer__logo span { color: #C2A14E; }
.site-footer__desc { font-size: 14px; line-height: 1.6; margin-top: 14px; }
.site-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.site-footer__col li { list-style: none; }
.site-footer__col-title { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #5E5A50; margin-bottom: 4px; }
.site-footer__phone { font-family: 'Spectral', serif; font-size: 18px; color: #F5F1E8; }
.site-footer__social { display: flex; gap: 14px; margin-top: 4px; }
.site-footer__bottom { max-width: 1300px; margin: 0 auto; padding: 22px 44px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #5E5A50; }

/* ==========================================================================
   Типовой контент страниц/записей (редактор блоков)
   ========================================================================== */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Spectral', serif;
  font-weight: 400;
  color: #F5F1E8;
  margin: 34px 0 16px;
}
.entry-content p { margin-bottom: 18px; }
.entry-content a { color: #DCC081; text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 22px; }
.entry-content blockquote { border-left: 2px solid #C2A14E; padding-left: 20px; color: #C3BEB2; margin: 24px 0; }
.entry-content img { margin: 20px 0; }
.entry-card + .entry-card { border-top: 1px solid #25272D; padding-top: 30px; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__title { font-size: 60px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-phone,
  .header-cta {
    display: none;
  }
  .nav-drawer { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-header.is-open .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow-y: auto;
    background: #0F1012;
    padding: 26px 44px 30px;
    border-top: 1px solid #25272D;
    border-bottom: 1px solid #25272D;
  }

  .site-header.is-open .main-nav-wrap { width: 100%; }
  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }

  .site-header.is-open .nav-drawer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #25272D;
    width: 100%;
  }
  .nav-drawer__phone { font-family: 'Spectral', serif; font-size: 20px; color: #F5F1E8; }
  .nav-drawer__cta { padding: 13px 26px; font-size: 14px; }

  .hero__stats-grid { grid-template-columns: 1fr; }
  .hero__stat { border-right: none; border-bottom: 1px solid #2C2E34; padding-left: 0 !important; }

  .svc-row { grid-template-columns: 50px 1fr 30px; grid-template-areas: "num name arrow" "desc desc desc"; row-gap: 10px; }
  .svc-num { grid-area: num; }
  .svc-name { grid-area: name; font-size: 26px; }
  .svc-arrow { grid-area: arrow; }
  .svc-desc { grid-area: desc; }

  .manifesto__inner { grid-template-columns: 1fr; gap: 20px; }
  .manifesto__quote-mark { font-size: 90px; }
  .manifesto__text { font-size: 28px; }

  .process__grid, .cases__grid, .reviews__grid { grid-template-columns: 1fr; gap: 30px; }
  .team__grid { grid-template-columns: 1fr 1fr; }

  .contact__inner { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 600px) {
  .container, .services, .process, .cases__inner, .team, .reviews__inner, .contact__inner, .site-header__inner, .hero__inner, .hero__stats, .manifesto__inner, .site-footer__top, .site-footer__bottom {
    padding-left: 24px;
    padding-right: 24px;
  }
  .site-logo__name { font-size: 20px; }
  .site-logo__est { display: none; }
  .site-header__inner { padding-top: 15px; padding-bottom: 15px; }

  .hero__title { font-size: 42px; letter-spacing: -1px; }
  .hero__text { font-size: 17px; width: auto !important; height: auto !important; }
  .section-title { font-size: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  .team__grid { grid-template-columns: 1fr; }
  .certs__item { flex-basis: 100%; height: 200px; }
  .contact__form-wrap { padding: 34px 26px; }
  .contact__title { font-size: 40px; }
}
