/*
Theme Name: ExecDocs Pro
Theme URI: https://example.com/execdocs-pro
Author: OpenAI
Author URI: https://openai.com
Description: Профессиональная классическая WordPress-тема для сайтов по исполнительной документации в строительстве, инженерному сопровождению, технадзору и публикации отраслевых материалов.
Version: 1.0.0
Tested up to: 6.8
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: execdocs-pro
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

:root {
  --ed-bg: #f5f7fb;
  --ed-surface: #ffffff;
  --ed-surface-soft: #eef3f9;
  --ed-text: #122033;
  --ed-muted: #5b6b80;
  --ed-line: #dde5ef;
  --ed-accent: #c69214;
  --ed-accent-dark: #8f6600;
  --ed-secondary: #0f3d66;
  --ed-secondary-soft: #e8f1f8;
  --ed-dark: #0f1724;
  --ed-success: #1d8f6e;
  --ed-radius: 20px;
  --ed-shadow: 0 18px 50px rgba(15, 23, 36, 0.08);
  --ed-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ed-accent-dark); }
input, textarea, select, button { font: inherit; }
button { cursor: pointer; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.container { width: min(100% - 32px, var(--ed-container)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.alignwide { width: min(100% - 32px, 1320px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--ed-dark);
  color: #fff;
  padding: 10px 14px;
  z-index: 999;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,229,239,0.9);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ed-secondary), var(--ed-accent));
  box-shadow: 0 12px 30px rgba(15,61,102,0.22);
}
.site-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}
.site-title a:hover,
.site-description a:hover { color: inherit; }
.site-description {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--ed-muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--ed-line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}
.main-navigation ul,
.footer-navigation ul,
.social-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-navigation a {
  font-weight: 600;
  color: var(--ed-text);
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--ed-accent-dark);
}

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: stretch;
  color: #fff;
  overflow: hidden;
  background: var(--ed-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,16,24,.86), rgba(10,16,24,.45) 55%, rgba(10,16,24,.2));
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 130px 0 110px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-text {
  margin: 22px 0 0;
  max-width: 700px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button,
.wp-block-button__link,
input[type="submit"],
button,
.read-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--ed-accent);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 14px 35px rgba(198,146,20,0.25);
}
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.read-more-link:hover {
  color: #fff;
  transform: translateY(-1px);
  background: var(--ed-accent-dark);
}
.button.is-secondary {
  background: rgba(255,255,255,0.08);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.18);
}
.button.is-secondary:hover { background: rgba(255,255,255,0.14); }
.hero-panel {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  padding: 28px;
}
.hero-stats {
  display: grid;
  gap: 16px;
}
.hero-stat {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}
.hero-stat span { color: rgba(255,255,255,0.78); }
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  cursor: pointer;
}
.hero-dot.is-active { background: var(--ed-accent); border-color: var(--ed-accent); }

.page-intro,
.content-card,
.news-card,
.archive-card,
.sidebar-widget,
.post-card,
.comment-respond,
.comments-area,
.search-card,
.not-found-card,
.info-panel {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow);
}
.page-intro,
.content-card,
.archive-card,
.search-card,
.not-found-card,
.info-panel,
.comments-area,
.comment-respond { padding: 32px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.entry-header { margin-bottom: 24px; }
.entry-title,
.archive-title,
.section-title {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.entry-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.entry-meta,
.archive-description,
.card-meta,
.site-footer,
.comment-metadata,
.wp-caption-text,
.gallery-caption {
  color: var(--ed-muted);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.96rem;
}
.post-thumbnail img,
.card-thumb img,
.archive-thumb img {
  border-radius: 18px;
}
.post-content > *:first-child,
.entry-content > *:first-child { margin-top: 0; }
.post-content > *:last-child,
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--ed-dark);
  line-height: 1.2;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}
.entry-content p,
.post-content p,
.archive-description p { margin: 0 0 1.1em; }
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol { padding-left: 1.3em; }
.entry-content blockquote,
.post-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--ed-accent);
  background: var(--ed-secondary-soft);
  border-radius: 0 16px 16px 0;
}
.entry-content table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}
.entry-content th,
.entry-content td,
.post-content th,
.post-content td {
  border: 1px solid var(--ed-line);
  padding: 10px 12px;
  text-align: left;
}
.entry-content code,
.post-content code {
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 8px;
}

.cards-grid,
.posts-grid,
.archive-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ed-surface-soft);
}
.card-thumb img,
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card,
.archive-card,
.post-card {
  overflow: hidden;
}
.news-card-content,
.archive-card-content,
.post-card-content { padding: 22px; }
.card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}
.card-excerpt { margin-top: 12px; color: var(--ed-muted); }
.card-meta { margin-top: 12px; font-size: 0.92rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 0.82rem;
  color: var(--ed-accent-dark);
  font-weight: 800;
}
.service-card,
.highlight-card {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--ed-line);
  box-shadow: var(--ed-shadow);
}
.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--ed-secondary-soft);
  color: var(--ed-secondary);
  font-weight: 800;
}
.cta-banner {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ed-secondary), #183a5a 55%, #10263e 100%);
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 61, 102, 0.25);
}
.cta-banner p { color: rgba(255,255,255,.82); }
.sidebar-area {
  position: sticky;
  top: 110px;
}
.widget-title {
  margin: 0 0 18px;
  font-size: 1.1rem;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ed-line);
}
.widget li:last-child { border-bottom: 0; }
.widget select,
.widget input[type="search"],
.search-form input[type="search"],
.search-form input[type="text"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--ed-line);
  background: #fff;
  padding: 12px 14px;
  color: var(--ed-text);
}
textarea { min-height: 160px; resize: vertical; }
.search-form,
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 10px;
}
.search-form label { flex: 1; }
.post-navigation,
.posts-navigation,
.navigation.pagination {
  margin-top: 32px;
}
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--ed-line);
  background: #fff;
}
.page-numbers.current { background: var(--ed-accent); color: #fff; border-color: var(--ed-accent); }

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: var(--ed-surface-soft);
}
.author-avatar img { border-radius: 999px; }

.comments-title,
.comment-reply-title { margin-top: 0; }
.comment-list,
.children { list-style: none; margin: 0; padding: 0; }
.comment-list > li { margin-bottom: 20px; }
.comment-body {
  padding: 22px;
  border: 1px solid var(--ed-line);
  border-radius: 18px;
  background: #fff;
}
.comment-author.vcard {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.comment-author img { border-radius: 999px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-form {
  display: grid;
  gap: 14px;
}
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment { margin: 0; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: center; }

.archive-hero {
  padding: 58px 0 36px;
}
.archive-hero-inner {
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f0f5fb);
  border: 1px solid var(--ed-line);
  box-shadow: var(--ed-shadow);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ed-muted);
  font-size: 0.95rem;
}
.taxonomy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ed-secondary-soft);
  color: var(--ed-secondary);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 70px;
  background: var(--ed-dark);
  color: rgba(255,255,255,0.82);
}
.footer-top {
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .9fr;
  gap: 28px;
}
.footer-title {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: #fff;
}
.footer-navigation ul,
.social-links ul { display: grid; gap: 12px; }
.social-links a,
.footer-navigation a { color: rgba(255,255,255,0.82); }
.social-links a:hover,
.footer-navigation a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wp-block-image img,
figure img { border-radius: 18px; }
.wp-block-cover,
.wp-block-group,
.wp-block-columns,
.wp-block-media-text,
.wp-block-quote,
.wp-block-table,
.wp-block-pullquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
.contact-form-7,
.wpcf7 form {
  padding: 24px;
  border: 1px solid var(--ed-line);
  border-radius: 20px;
  background: #fff;
}
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select { width: 100%; }
.wpcf7-spinner { display: none; }

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid,
  .footer-grid,
  .cards-grid,
  .posts-grid,
  .archive-grid,
  .services-grid,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-area { position: static; }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    width: 100%;
    display: none;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; padding: 10px 0 0; }
  .hero-content { padding: 110px 0 92px; }
  .hero-grid,
  .cards-grid,
  .posts-grid,
  .archive-grid,
  .services-grid,
  .grid-2,
  .grid-3,
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .page-intro,
  .content-card,
  .archive-card,
  .search-card,
  .not-found-card,
  .info-panel,
  .comments-area,
  .comment-respond,
  .hero-panel,
  .archive-hero-inner,
  .cta-banner { padding: 24px; }
  .hero-controls { bottom: 20px; }
  .search-form,
  .wp-block-search__inside-wrapper { flex-direction: column; }
}

@media (max-width: 540px) {
  body { font-size: 15px; }
  .container { width: min(100% - 20px, var(--ed-container)); }
  .logo-mark { width: 42px; height: 42px; }
  .hero-title { font-size: 2.2rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button,
  .wp-block-button__link,
  input[type="submit"],
  button { width: 100%; }
}