/* БудьЗдрав — global.css */

:root {
  --ink: #0e0c09;
  --parchment: #f5f0e8;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --moss: #3d5a3e;
  --moss-dark: #2a3f2b;
  --sage: #7a9e7e;
  --cream: #faf7f2;
  --warm-grey: #8a8278;
  --surface: #161310;
  --surface2: #1c1a16;
  --border: rgba(201,168,76,0.15);
  --danger: #8b3a2a;
  --danger-light: rgba(139,58,42,0.12);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--ink);
  color: var(--parchment);
  overflow-x: hidden;
  cursor: none;
}

/* Noise overlay */
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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9997;
}

/* Custom cursor */
.cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  transform: translate(-12px, -12px);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14,12,9,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
}
.nav-logo .logo-accent { font-style: italic; color: var(--gold-light); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.current { color: var(--gold); }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-back {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.nav-back::before { content: '←'; }
.nav-back:hover { color: var(--gold); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,12,9,0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.open { display: flex; opacity: 1; }
.nav-mobile-overlay .nav-links { flex-direction: column; align-items: center; gap: 32px; }
.nav-mobile-overlay .nav-links a { font-size: 14px; letter-spacing: 0.25em; }
.nav-mobile-overlay .nav-cta { font-size: 12px; padding: 14px 36px; }

/* Breadcrumb */
.breadcrumb {
  padding: 100px 60px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb a {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--warm-grey);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(138,130,120,0.4); font-size: 11px; }
.breadcrumb-current { font-size: 11px; letter-spacing: 0.15em; color: var(--gold); }

/* Simple footer */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-footer-copy { font-size: 11px; color: rgba(138,130,120,0.4); letter-spacing: 0.1em; }
.page-footer-links { display: flex; gap: 24px; }
.page-footer-links a { font-size: 11px; color: var(--warm-grey); text-decoration: none; letter-spacing: 0.1em; transition: color 0.3s; }
.page-footer-links a:hover { color: var(--gold); }

/* Full footer (front page) */
.site-footer-full {
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.site-footer-full .nav-logo { font-size: 28px; display: block; margin-bottom: 16px; }
.footer-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--warm-grey); max-width: 280px; }
.footer-col-title { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; font-weight: 300; color: var(--warm-grey); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--parchment); }

.footer-bottom {
  padding: 24px 60px;
  border-top: 1px solid rgba(138,130,120,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 11px; color: rgba(138,130,120,0.4); letter-spacing: 0.1em; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(-6px) rotate(-0.5deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.float { animation: float 8s ease-in-out infinite; }
.float-anim { animation: float 6s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Gold divider */
.gold-divider { width: 60px; height: 1px; background: var(--gold); margin: 32px 0; }

/* Content area links — global styling for all page types */
.content-text a,
.article-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.content-text a:hover,
.article-body a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* Cursor none for all interactive */
a, button, input, textarea, select { cursor: none; }

/* WP-specific: hide admin bar space */
html { margin-top: 0 !important; }
#wpadminbar { display: none; }

/* CF7 form styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
  flex: 1;
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(245,240,232,0.2);
  border-right: none;
  outline: none;
  padding: 16px 24px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--cream);
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder { color: rgba(245,240,232,0.4); }
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus { border-color: var(--gold-light); }
.wpcf7 input[type="submit"] {
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 16px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: none;
  transition: background 0.3s;
  white-space: nowrap;
  box-sizing: border-box;
}
.wpcf7 input[type="submit"]:hover { background: var(--gold-light); border-color: var(--gold-light); }
.wpcf7 .wpcf7-response-output { font-size: 12px; color: var(--sage); border-color: var(--sage) !important; margin-top: 12px; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 11px; color: #c0543a; }
.wpcf7 form.form-row { display: flex; gap: 0; align-items: flex-end; }
.wpcf7 form.form-row p { margin: 0; display: flex; flex-direction: column; flex: 1; }
.wpcf7 form.form-row p label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.5); margin-bottom: 8px; }
.wpcf7 form.form-row p:last-child { flex: none; }

/* Mobile */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  nav > .nav-links, nav > .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .breadcrumb { padding: 90px 24px 0; }
  .page-footer { padding: 32px 24px; flex-direction: column; gap: 16px; text-align: center; }
  .site-footer-full { grid-template-columns: 1fr 1fr; padding: 48px 24px; gap: 40px; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
  .wpcf7 form.form-row { flex-direction: column; }
  .wpcf7 form.form-row p { width: 100%; }
  .wpcf7 form.form-row p:last-child::before { display: none; }
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"] { border-right: 1px solid rgba(245,240,232,0.2); width: 100%; }
  .wpcf7 input[type="submit"] { width: 100%; }
}

@media (max-width: 500px) {
  .site-footer-full { grid-template-columns: 1fr; }
}

/* Content headings — top margin for breathing room */
.content-text h2,
.article-body h2 {
  margin-top: 52px;
}
.content-text h3,
.article-body h3 {
  margin-top: 36px;
}

/* WordPress Block Tables */
.wp-block-table {
  margin: 32px 0;
  overflow-x: auto;
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}
.wp-block-table thead {
  background: rgba(201,168,76,0.08);
  border-bottom: 2px solid rgba(201,168,76,0.25);
}
.wp-block-table thead th {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}
.wp-block-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.wp-block-table tbody tr:last-child {
  border-bottom: none;
}
.wp-block-table tbody tr:hover {
  background: var(--surface2);
}
.wp-block-table tbody td {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245,240,232,0.8);
  padding: 16px 20px;
  vertical-align: top;
}
.wp-block-table tbody td:first-child {
  color: var(--parchment);
  font-weight: 400;
}

/* Touch devices - restore normal cursor */
@media (hover: none) {
  body { cursor: auto; }
  a, button, input, textarea, select { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}
