/*
Theme Name: Портфолио Надежды Васильевой
Theme URI: 
Description: Одностраничный сайт-портфолио фрилансера. Все блоки редактируются через отдельные страницы WordPress.
Version: 1.0
Author: 
Text Domain: nadezhda-portfolio
*/

/* ===== CSS Variables (Цветовая гамма по ТЗ) ===== */
:root {
  --color-bg: #F8F9FA;
  --color-bg-alt: #FFFFFF;
  --color-text: #2C3E50;
  --color-text-muted: #6C757D;
  --color-accent: #FF8C42;
  --color-accent-hover: #E67A35;
  --color-border: #E9ECEF;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ===== Typography ===== */
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--color-text); }
p { margin: 0 0 1em; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

/* ===== Layout ===== */
.np-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.np-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
  transition: background 0.3s;
}
.np-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.np-logo { font-weight: 700; font-size: 1.25rem; color: var(--color-text); }
.np-nav a {
  margin-left: 24px;
  color: var(--color-text);
  font-weight: 500;
}
.np-nav a:hover { color: var(--color-accent); }

/* ===== Hero / First Screen ===== */
.np-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.np-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%);
  z-index: 0;
}
.np-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.np-hero-content h1 { margin-bottom: 16px; line-height: 1.2; }
.np-hero-subtitle { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 32px; }
.np-hero-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44,62,80,0.15);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.np-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.np-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ===== Section Common ===== */
.np-section {
  padding: 80px 0;
  background: var(--color-bg);
}
.np-section:nth-child(even) { background: var(--color-bg-alt); }
.np-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.np-section-title h2 { margin-bottom: 8px; }

/* ===== Portfolio ===== */
.np-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.np-portfolio-card {
  background: var(--color-bg-alt);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.np-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.np-portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.np-portfolio-card-body { padding: 24px; }
.np-portfolio-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.np-portfolio-what { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 8px; }
.np-portfolio-result {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.np-portfolio-card .np-btn { width: 100%; text-align: center; }

/* ===== Services ===== */
.np-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.np-service-card {
  background: var(--color-bg-alt);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.np-service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(255,140,66,0.15);
}
.np-service-card h3 { margin-bottom: 12px; }
.np-service-price { font-size: 1.25rem; font-weight: 700; color: var(--color-accent); margin-top: 16px; }

/* ===== Benefits ===== */
.np-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.np-benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.np-benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255,140,66,0.15);
  color: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.np-benefit-item h4 { margin-bottom: 4px; font-size: 1.1rem; }
.np-benefit-item p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }

/* ===== Process ===== */
.np-process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.np-process-step {
  position: relative;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
}
.np-process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.np-process-step h4 { margin-top: 8px; margin-bottom: 8px; }
.np-process-step p { margin: 0; font-size: 0.95rem; }

/* ===== FAQ ===== */
.np-faq-list { max-width: 700px; margin: 0 auto; }
.np-faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.np-faq-item:first-child { padding-top: 0; }
.np-faq-question {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.np-faq-answer { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* ===== Contacts ===== */
.np-contacts {
  background: linear-gradient(135deg, var(--color-text) 0%, #1a252f 100%);
  color: #fff;
}
.np-contacts h2 { color: #fff; }
.np-contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.np-contacts-text { margin-bottom: 24px; }
.np-contacts-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.np-contacts-links a {
  color: #fff;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 10px;
}
.np-contacts-links a:hover { opacity: 1; color: var(--color-accent); }
.np-form {
  background: rgba(255,255,255,0.05);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.np-form input,
.np-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}
.np-form input::placeholder,
.np-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.np-form textarea { min-height: 100px; resize: vertical; }
.np-form .np-btn { margin-top: 8px; }
.np-footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.8;
}
.np-footer-legal a { color: #fff; text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .np-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .np-hero::before { width: 100%; height: 40%; top: auto; bottom: 0; }
  .np-hero-photo { max-width: 300px; margin: 0 auto; }
  .np-hero-photo-wrap { order: -1; }
  .np-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .np-nav a { margin-left: 0; }
  .np-contacts-inner { grid-template-columns: 1fr; }
  .np-section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .np-hero { padding: 100px 0 60px; }
  .np-portfolio-grid,
  .np-services-grid { grid-template-columns: 1fr; }
}
