/* Filler Imig — Уникальный современный дизайн | Синие и красные акценты | Асимметричная сетка + Magazine стиль */
:root {
  --primary: #1E3A8A;
  --accent: #C0262B;
  --dark: #0F172A;
  --text: #1E293B;
  --gray: #64748B;
  --light-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow-soft: 0 4px 6px -1px rgb(15 23 42 / 0.07), 0 2px 4px -2px rgb(15 23 42 / 0.07);
  --shadow-hover: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--light-bg);
  font-size: 17px;
}

/* Header & Nav - Sticky, clean, asymmetric logo accent */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "◉";
  color: var(--accent);
  font-size: 1.1em;
}

nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light-bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }
  
  nav ul.show {
    display: flex;
  }
}

/* Hero Section - Split asymmetric with color block */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
  color: white;
  padding: 5.5rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(192, 38, 43, 0.15);
  transform: rotate(25deg);
  border-radius: 40% 60% 70% 30%;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-text .subtitle {
  font-size: 1.35rem;
  opacity: 0.92;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-text .lead {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 460px;
}

.hero-visual {
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

.hero-visual .quote {
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-visual .author {
  font-size: 0.95rem;
  opacity: 0.75;
  font-weight: 500;
}

/* Main content wrapper */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Long intro text section - Magazine feel */
.intro {
  padding: 4.5rem 0 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.intro h2 {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.intro p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.35rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Category filters - Pills style unique */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Asymmetric Posts Grid - Creative layout */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1100px) {
  .posts-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.75rem;
  }
  
  .post-card:nth-child(3n+1) {
    grid-column: span 5;
  }
  
  .post-card:nth-child(3n+2) {
    grid-column: span 4;
  }
  
  .post-card:nth-child(3n) {
    grid-column: span 3;
  }
  
  .post-card.featured {
    grid-column: span 7;
    grid-row: span 2;
  }
}

/* Post Cards - Unique varied styling */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.post-card .accent-bar {
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.post-card:nth-child(even) .accent-bar {
  background: linear-gradient(to right, var(--accent), var(--primary));
}

.post-card .content {
  padding: 1.75rem 1.85rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: var(--dark);
  font-weight: 700;
}

.post-card .excerpt {
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.35rem;
}

.post-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: auto;
}

.post-card .category-tag {
  background: #F1F5F9;
  color: var(--primary);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.post-card .read-more:hover {
  gap: 0.65rem;
  color: var(--primary);
}

/* Sidebar - Magazine style */
.sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar li:last-child {
  border-bottom: none;
}

.sidebar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* About author block in sidebar */
.author-block {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.author-block p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Modal for full articles - Clean overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-header h2 {
  font-size: 1.65rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
}

.modal-close {
  background: #F1F5F9;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 1.02rem;
  line-height: 1.75;
}

.modal-body h3 {
  color: var(--primary);
  margin: 1.85rem 0 0.75rem;
  font-size: 1.25rem;
}

.modal-body p {
  margin-bottom: 1.15rem;
}

.modal-body ul {
  margin: 1rem 0 1.5rem 1.25rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* Contacts page form */
.form-container {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 3rem 2.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.65rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: #FAFBFC;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem 2.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: #9F1C20;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(192 38 43 / 0.3);
}

/* Thank you page */
.thankyou-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(to bottom, #1E3A8A, #0F172A);
  color: white;
}

.thankyou-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.thankyou-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.thankyou-content p {
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
}

/* Privacy & Terms pages */
.policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.policy-page h1 {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.policy-page .last-updated {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.policy-page h2 {
  font-size: 1.45rem;
  color: var(--dark);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.policy-page h3 {
  font-size: 1.15rem;
  margin: 1.65rem 0 0.6rem;
  color: var(--primary);
}

.policy-page p, .policy-page li {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.policy-page ul {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand::before {
  content: "◉ ";
  color: var(--accent);
}

footer a {
  color: #94A3B8;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

.footer-disclaimer {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 1.5rem;
  line-height: 1.6;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.25rem;
}

.legal-links a {
  font-size: 0.9rem;
}

/* Utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.hidden {
  display: none !important;
}