/*
Theme Name: Osteolab SPB
Theme URI: https://osteolabspb.ru
Author: Osteolab SPB
Author URI: https://osteolabspb.ru
Description: Простая адаптивная тема для сайта остеопатии с сохранением верхних ссылок на eastclinic.ru.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osteolabspb
Tags: responsive, custom-header, custom-menu, accessibility-ready, one-column
*/

:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #222222;
  --muted: #666666;
  --primary: #2a5d3b;
  --accent: #d1a06b;
  --border: #e0d9d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
.top-links {
  width: 100%;
}

.top-links {
  background: #0f3244;
  color: #fff;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.top-links a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.site-description {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.main-navigation {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-navigation a {
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.main-navigation a:hover {
  background: rgba(42,93,59,0.1);
}

.hero {
  background: url('https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  color: #ffffff;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  background: rgba(15, 50, 68, 0.65);
  border-radius: 1rem;
  padding: 3rem 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.button-primary {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #121212;
  font-weight: 700;
}

.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section {
  margin-bottom: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.section h2 {
  margin-top: 0;
  color: var(--primary);
}

.service-grid,
.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fcfbf8;
  border: 1px solid #ece7de;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 1.5rem 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .site-branding {
    flex-direction: column;
    align-items: flex-start;
  }
}
