/* style.css */
/*
Theme Name: AndreyLoginovPro
Text Domain: andreyloginovpro
*/
:root {
  --primary: #1A202C;
  --secondary: #E53E3E;
  --bg-1: #EDF2F7;
  --bg-2: #E2E8F0;
  --white: #ffffff;
  --section-pad: clamp(4rem, 6vw, 6rem);
  --line: 4px solid var(--secondary);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Playfair Display', serif; background: var(--bg-1); color: var(--primary); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); overflow-x: visible; }

/* Typography */
h1, h2, h3 { font-family: 'Playfair Display', serif; word-break: break-word; color: var(--primary); }
h1 { font-size: clamp(2rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 4rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.3rem, 4vw, 2rem); margin-bottom: 1rem; }
p { font-size: 1.1rem; font-family: 'Roboto', sans-serif; color: #4A5568; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; background: var(--primary); color: var(--white); text-decoration: none; font-size: 1.1rem; font-family: 'Roboto', sans-serif; font-weight: bold; transition: 0.3s; }
.btn:hover { background: var(--secondary); }

/* N-D Centered Header */
.site-header { background: var(--white); border-bottom: var(--line); position: relative; z-index: 1000; padding-top: 1rem; text-align: center; }
.header-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.logo { font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 900; color: var(--primary); text-decoration: none; white-space: nowrap; margin-bottom: 1rem; display: inline-flex; gap: 5px; }
.logo span { color: var(--secondary); }
.nav-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--primary); position: absolute; right: 1rem; top: 1rem; z-index: 2100; }
.main-nav { width: 100%; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 2rem; padding: 1rem 0; }
.main-nav a { text-decoration: none; color: var(--primary); font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1rem; transition: color 0.2s; white-space: normal; overflow-wrap: break-word; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .logo { margin-bottom: 0; }
  .header-inner { padding: 1rem 0; flex-direction: row; justify-content: space-between; }
  .main-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--white); z-index: 2000; transform: translateY(-100%); transition: transform 0.4s ease; visibility: hidden; align-items: center; justify-content: center; }
  body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .main-nav a { font-size: 1.5rem; }
}

/* Sections - V-D Alternating Colors */
.section { padding: var(--section-pad) 0; overflow: hidden; position: relative; }
.section.alt { background: var(--bg-2); }
.section.white { background: var(--white); }
/* D-B Lines */
.section { border-bottom: var(--line); }

/* H-D Breakout Hero */
.hero-breakout { display: grid; grid-template-columns: 1fr 1fr; position: relative; padding: var(--section-pad) 0 0 0; background: var(--bg-1); border-bottom: var(--line); }
.hero-text { padding-bottom: var(--section-pad); display: flex; flex-direction: column; justify-content: center; }
.hero-image-wrap { position: relative; height: 100%; min-height: 400px; }
.hero-image-wrap img { position: absolute; top: 0; left: 0; width: 150%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .hero-breakout { grid-template-columns: 1fr; padding-top: 0; }
  .hero-text { padding: var(--section-pad) 0; }
  .hero-image-wrap { width: 100vw; margin-left: calc(-50vw + 50%); }
  .hero-image-wrap img { width: 100%; position: relative; }
}

/* F-A Horizontal Stripes */
.feature-stripe { padding: 4rem 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.1); }
.feature-stripe:nth-child(even) { background: var(--bg-2); }
.feature-stripe:nth-child(odd) { background: var(--white); }
.feature-stripe h3 { margin-bottom: 0.5rem; }
.feature-stripe p { max-width: 600px; margin: 0 auto; }

/* C-D Minimal Cards */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; margin-top: 3rem; }
@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .posts-grid { grid-template-columns: minmax(0, 1fr); } }

.card-minimal { display: block; text-decoration: none; color: inherit; padding-bottom: 1rem; border-bottom: 2px solid rgba(0,0,0,0.1); transition: 0.3s; }
.card-minimal:hover { border-bottom-color: var(--secondary); }
.card-minimal .meta { display: flex; gap: 1rem; font-family: 'Roboto', sans-serif; font-size: 0.9rem; color: #718096; margin-bottom: 0.5rem; font-weight: 700; text-transform: uppercase; }
.card-minimal h3 { margin-bottom: 0.5rem; transition: color 0.3s; }
.card-minimal:hover h3 { color: var(--secondary); }

/* U-C Horizontal Scroll */
.horizontal-scroll-wrap { margin-top: 3rem; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); padding: 0 5vw; display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 2rem; }
.scroll-item { scroll-snap-align: start; flex: 0 0 300px; background: var(--white); padding: 2rem; border-left: var(--line); }
.horizontal-scroll-wrap::-webkit-scrollbar { height: 8px; }
.horizontal-scroll-wrap::-webkit-scrollbar-track { background: var(--bg-2); }
.horizontal-scroll-wrap::-webkit-scrollbar-thumb { background: var(--primary); }

/* FT-D CTA Footer */
.footer-cta { background: var(--primary); color: var(--white); text-align: center; padding: clamp(4rem, 8vw, 8rem) 1rem; }
.footer-cta h2 { color: var(--white); margin-top: 0; margin-bottom: 1.5rem; }
.footer-cta p { color: #A0AEC0; margin-bottom: 2rem; }
.site-footer { background: var(--white); padding: 3rem 0; border-top: var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-logo { font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 900; color: var(--primary); text-decoration: none; overflow-wrap: anywhere; }
.footer-inner ul { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-inner a { color: var(--primary); text-decoration: none; font-family: 'Roboto', sans-serif; font-weight: bold; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 4rem 0; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; text-decoration: none; font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--primary); border: 2px solid var(--primary); transition: 0.3s; background: transparent; }
.pagination .page-numbers.current { background: var(--primary); color: var(--white); }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.pagination .page-numbers.dots { border: none; }

/* Content Protocol */
.post-content { max-width: 800px; margin: 0 auto; padding: var(--section-pad) 0; }
.post-content h2, .post-content h3 { border-bottom: 2px solid var(--bg-2); padding-bottom: 0.5rem; }
.post-content ul, .post-content ol { padding-left: 2rem; margin-bottom: 2rem; font-family: 'Roboto', sans-serif; font-size: 1.1rem; color: #4A5568; line-height: 1.6; }
.post-content li { margin-bottom: 0.5rem; }
.post-content p { margin-bottom: 2rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-family: 'Roboto', sans-serif; }
.post-content th, .post-content td { border: 1px solid var(--bg-2); padding: 1rem; text-align: left; }
.post-content th { background: var(--primary); color: var(--white); }
