:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-muted: #555555;
  --color-accent-3: #ff8f45;
  --surface-panel: #ffefe2;
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-image: 0 12px 28px rgba(0,0,0,0.12);
  --font-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --max-width: 1000px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
}
img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--color-accent-3);
  font-weight: 500;
  text-decoration: none;
}
a:hover { opacity: 0.8; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid #f0c8b8;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.monogram {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-accent-3);
}

.brand-text .name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.brand-text .role {
  margin: 2px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(255, 210, 200, 0.35);
  transition: 0.2s ease;
}
.site-nav a:hover {
  background: rgba(255, 185, 170, 0.55);
  transform: translateY(-2px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
  display: grid;
  gap: var(--space-6);
}

/* Секція-блок */
.block {
  background: var(--surface-panel);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

.block-header h2 {
  margin: 0 0 var(--space-3);
  color: var(--color-accent-3);
  letter-spacing: var(--letter-wide);
  font-size: clamp(18px, 2.5vw, 24px);
}

/* Сітка для карток */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid.three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.three { grid-template-columns: 1fr; }
}

/* Посилання-картка */
.card-link {
  text-decoration: none;
  display: block;
}

/* Картки */
.card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  color: #000;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 40px 0;
}

/* Вирівнювання тексту всередині картки */
.card h3, .card p {
  margin: 0 0 var(--space-2);
}

/* Шрифт для тексту в картках */
.sofia-sans-condensed-AAA {
  font-family: "Sofia Sans Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
