/*
Theme Name: Ocenchik SU
Theme URI: https://ocenchik.su/
Author: Ocenchik.su
Author URI: https://ocenchik.su/
Description: Лёгкая тема WordPress для сайта оценщиков. Поддержка Elementor, широкие страницы, адаптивная шапка, SEO-разметка и чистый дизайн.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ocenchik-su
*/

:root {
  --oc-blue: #0f4c81;
  --oc-dark: #17324d;
  --oc-gold: #ffcc33;
  --oc-text: #1f2937;
  --oc-muted: #6b7280;
  --oc-border: #e5e7eb;
  --oc-bg: #f8fafc;
  --oc-white: #ffffff;
  --oc-radius: 18px;
  --oc-shadow: 0 12px 30px rgba(15, 76, 129, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--oc-text);
  background: #fff;
}

a { color: var(--oc-blue); text-decoration: none; }
a:hover { color: var(--oc-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.oc-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--oc-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--oc-blue), #35a1d8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.5px;
}

.site-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 850;
  color: var(--oc-dark);
}

.site-title a { color: inherit; text-decoration: none; }

.site-description {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--oc-muted);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-navigation a {
  display: inline-flex;
  color: var(--oc-text);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
}

.main-navigation a:hover { color: var(--oc-blue); }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--oc-gold);
  color: #1f2937 !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.menu-toggle { display: none; }

.site-main { min-height: 58vh; }

.page-content,
.entry-content {
  width: 100%;
}

.entry-header.default-title {
  padding: 44px 0 12px;
}

.entry-title {
  margin: 0;
  color: var(--oc-dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--oc-dark);
  line-height: 1.18;
}

.entry-content h2 { font-size: clamp(25px, 3vw, 36px); }
.entry-content h3 { font-size: 22px; }

/* Базовые блоки для страниц */
.oc-hero {
  background: linear-gradient(135deg, var(--oc-blue), var(--oc-dark));
  color: #fff;
  border-radius: 22px;
  padding: 52px 34px;
  margin: 28px 0 34px;
  overflow: hidden;
}

.oc-hero h1,
.oc-hero h2,
.oc-hero h3 { color: #fff; }

.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 800;
}

.oc-btn-primary { background: var(--oc-gold); color: #1f2937 !important; }
.oc-btn-blue { background: var(--oc-blue); color: #fff !important; }

.oc-card {
  background: #fff;
  border: 1px solid var(--oc-border);
  border-radius: var(--oc-radius);
  padding: 24px;
  box-shadow: var(--oc-shadow);
}

.site-footer {
  margin-top: 56px;
  background: var(--oc-dark);
  color: rgba(255,255,255,.86);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  padding: 38px 0;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin-top: 0;
}

.site-footer a { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 16px 0;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

/* Elementor compatibility */
.elementor-page .entry-header.default-title { display: none; }
.elementor-page .site-main .oc-container { width: 100%; max-width: none; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1180px; }

/* WordPress alignments */
.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .menu-toggle {
    display: inline-flex;
    background: var(--oc-blue);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: block; }
  .main-navigation li { border-top: 1px solid var(--oc-border); }
  .main-navigation a { padding: 12px 0; }
  .header-cta { margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .oc-container { width: min(100% - 24px, 1180px); }
  .site-title { font-size: 19px; }
  .site-description { display: none; }
  .header-cta { padding: 9px 12px; font-size: 14px; }
  .oc-hero { padding: 34px 20px; border-radius: 18px; }
}
