
:root {
  --green: #0f7a3b;
  --green-dark: #0b4f2a;
  --dark: #102018;
  --light: #f5faf6;
  --accent: #f2c94c;
  --muted: #607267;
  --card: #ffffff;
  --line: rgba(16,32,24,.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
}
a { color: var(--green-dark); }
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.82);
  font-size: 14px;
  padding: 8px 20px;
  text-align: center;
}
.site-header {
  background:
    linear-gradient(135deg, rgba(15,122,59,.96), rgba(16,32,24,.92)),
    url("../images/tym-decin.jpg") center/cover;
  color: white;
  padding: 34px 20px;
}
.header-wrap, .nav-wrap, main, .hero-inner {
  max-width: 1120px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: white;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.brand-title {
  font-size: 25px;
  font-weight: 900;
  margin: 0;
}
.brand-subtitle {
  margin: 2px 0 0;
  color: rgba(255,255,255,.86);
}
.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  gap: 18px;
  padding: 12px 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 800;
  font-size: 15px;
}
.hero {
  padding: 64px 20px 52px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #e9f6ee;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 800;
  font-size: 14px;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  margin: 18px 0 16px;
}
h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.9px;
  margin: 0 0 16px;
}
h3 { margin: 0 0 8px; font-size: 22px; }
.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 780px;
}
main { padding: 42px 20px 74px; }
section { margin-bottom: 28px; }
.card {
  background: var(--card);
  border-radius: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16,32,24,.07);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure, .photo-card {
  margin: 0;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16,32,24,.07);
}
.gallery img, .photo-card img, .hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.hero-photo {
  height: 430px;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(16,32,24,.16);
}
figcaption {
  padding: 13px 16px 16px;
  color: var(--muted);
  font-size: 14px;
}
.cta {
  background: #fff8d8;
  border-left: 7px solid var(--accent);
}
.button {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  margin-top: 10px;
}
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.78);
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
}
.footer a { color: white; }
.notice { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-inner, .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .hero-photo, .gallery img, .photo-card img { height: auto; }
}
