/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #FFFFFF;
  color: #1F2937;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { color: #6B7280; }

/* ===== LAYOUT ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 80px 0; }
section:nth-child(even) { background: #F7F9FB; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 0.75rem auto 0; font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: #2563EB;
  color: #FFFFFF;
}
.btn-primary:hover { background: #1D4ED8; }

.btn-outline {
  background: transparent;
  color: #2563EB;
  border-color: #2563EB;
}
.btn-outline:hover { background: #2563EB; color: #FFFFFF; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1F2937;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

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

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6B7280;
  transition: color 0.2s;
}
nav a:hover { color: #2563EB; }

.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1F2937;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #FFFFFF;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-content h1 { color: #1F2937; margin-bottom: 1.25rem; }

.hero-content p {
  font-size: 1.15rem;
  color: #6B7280;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  color: #2563EB;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: #2563EB;
  display: block;
}
.stat-card .label {
  font-size: 0.85rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

/* ===== PROGRAM ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.program-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.program-icon {
  width: 44px;
  height: 44px;
  background: #EFF6FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.program-icon svg { width: 22px; height: 22px; stroke: #2563EB; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.program-card h3 { margin-bottom: 0.5rem; color: #1F2937; }

/* ===== METHODS ===== */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.methods-list { list-style: none; }
.methods-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
}
.methods-list li:last-child { border-bottom: none; }

.method-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563EB;
}

.method-text h4 { color: #1F2937; margin-bottom: 0.2rem; font-size: 0.95rem; }
.method-text p { font-size: 0.875rem; }

.methods-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.methods-images img {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.methods-images img:first-child {
  grid-column: span 2;
  height: 220px;
}

/* ===== FOR FAMILIES ===== */
.families-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.families-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.families-items { display: flex; flex-direction: column; gap: 1.25rem; }

.family-item {
  display: flex;
  gap: 1rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.family-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #EFF6FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.family-icon svg { width: 20px; height: 20px; stroke: #2563EB; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.family-item h4 { color: #1F2937; margin-bottom: 0.2rem; font-size: 0.95rem; }
.family-item p { font-size: 0.875rem; }

/* ===== CONTACTS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-card h3 { margin-bottom: 1.5rem; color: #1F2937; font-size: 1.05rem; }

.contact-item {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #EFF6FF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 18px; height: 18px; stroke: #2563EB; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-item .label { font-size: 0.78rem; color: #9CA3AF; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-item .value { font-size: 0.95rem; color: #1F2937; font-weight: 500; }
.contact-item a.value { color: #2563EB; }
.contact-item a.value:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form h3 { margin-bottom: 0.5rem; color: #1F2937; font-size: 1.05rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1F2937;
  background: #FFFFFF;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563EB;
}

/* ===== FOOTER ===== */
footer {
  background: #F7F9FB;
  border-top: 1px solid #E5E7EB;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: #1F2937;
}
.footer-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer-nav a { font-size: 0.875rem; color: #6B7280; transition: color 0.2s; }
.footer-nav a:hover { color: #2563EB; }

.footer-copy { font-size: 0.8rem; color: #9CA3AF; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid,
  .methods-grid,
  .families-grid,
  .contacts-grid { grid-template-columns: 1fr; }

  .families-image { order: -1; }
  .families-image img { height: 280px; }

  nav { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: #FFFFFF; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid #E5E7EB; z-index: 99; }
  nav.open { display: flex; }
  nav a { font-size: 1rem; }

  .nav-toggle { display: flex; }

  .lang-switch { margin-left: auto; }

  .methods-images { grid-template-columns: 1fr; }
  .methods-images img:first-child { grid-column: span 1; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  #hero { min-height: 80vh; }
}
