/* ===== Rostislav Kuchelaev — Psychologist ===== */
:root {
  --bg: #F7F4EF;
  --bg-alt: #EFEAE3;
  --primary: #2F6B6B;
  --primary-dark: #245555;
  --accent: #C17B5A;
  --accent-hover: #A8684A;
  --sage: #7A9A8A;
  --text: #2C2C2A;
  --text-muted: #5A5A56;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(47, 107, 107, 0.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 107, 107, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }

.nav { display: flex; gap: 1.8rem; align-items: center; }

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

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

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(47, 107, 107, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 560;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta strong { color: var(--text); font-weight: 560; }

.hero-photo {
  position: relative;
}

.hero-photo img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--sage);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.5;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.8rem;
}

.section-header h2 {
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.section-header p { color: var(--text-muted); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 107, 107, 0.06);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(47, 107, 107, 0.12);
}

.card-icon {
  width: 42px;
  height: 42px;
  background: rgba(47, 107, 107, 0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* About teaser */
.about-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-teaser img {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.about-teaser h2 {
  font-size: 1.7rem;
  font-weight: 650;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-teaser p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-teaser ul {
  list-style: none;
  margin: 1.2rem 0 1.6rem;
}

.about-teaser li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.about-teaser li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* CTA block */
.cta-block {
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  padding: 2.8rem 2rem;
  text-align: center;
}

.cta-block h2 {
  font-size: 1.7rem;
  font-weight: 650;
  margin-bottom: 0.7rem;
}

.cta-block p {
  opacity: 0.9;
  max-width: 420px;
  margin: 0 auto 1.6rem;
}

.cta-block .btn-primary {
  background: var(--accent);
}

.cta-block .btn-primary:hover {
  background: var(--accent-hover);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 107, 107, 0.06);
  transition: transform .2s;
}

.blog-card:hover { transform: translateY(-3px); }

.blog-card-body { padding: 1.4rem; }

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--sage);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.contact-item strong { display: block; margin-bottom: 0.15rem; }

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 520;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(47, 107, 107, 0.18);
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Footer */
.footer {
  background: var(--text);
  color: #c8c5c0;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer a { color: #e8e4df; }
.footer a:hover { color: var(--accent); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Page header for inner pages */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* Mobile */
@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(47,107,107,0.1);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .menu-toggle { display: block; }

  .hero-grid,
  .about-teaser,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }

  .hero { padding: 2.5rem 0 2rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
