:root {
  --ink: #202423;
  --green: #5d6f4c;
  --green-dark: #3f4f35;
  --green-soft: #eef1e9;
  --sand: #e8e0d4;
  --paper: #ffffff;
  --line: #e6e6e2;
  --muted: #6f736f;
  --max: 1180px;
  --shadow: 0 18px 46px rgba(27, 34, 25, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max);
  min-height: 84px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(27, 34, 25, .06));
}
.brand-text {
  display: flex;
  align-items: flex-end;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--green-dark);
  padding-bottom: 3px;
}
.brand-text strong {
  display: inline-block;
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .04em;
}


@media (max-width: 980px) {
  .brand img {
    width: 52px;
    height: 52px;
  }
  .brand-text strong {
    font-size: 17px;
  }
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav > a,
.nav-group > button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .055em;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav > a:hover,
.nav-group > button:hover,
.main-nav > a.active { color: var(--green-dark); }

.social-links-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff !important;
  text-decoration: none;
  flex: 0 0 auto;
}
.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.social-icon-header {
  padding: 0 !important;
  margin: 0;
}
.social-icon:hover {
  opacity: .82;
}
.nav-group { position: relative; }
.nav-group > button span { font-size: 12px; margin-left: 3px; }
.dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  min-width: 245px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
}
.dropdown-wide { min-width: 280px; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
}
.dropdown a:hover { background: var(--green-soft); }
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown,
.nav-group.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-toggle { display: none; }

/* ---------- Home ---------- */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 610px;
  background:
    linear-gradient(90deg, rgba(12,18,11,.28), rgba(12,18,11,.03)),
    url("https://static.wixstatic.com/media/1c4542_1285f264a61b4b1581c286b3cb8a95d2~mv2.jpg/v1/fill/w_1600,h_900,al_c,q_90/1c4542_1285f264a61b4b1581c286b3cb8a95d2~mv2.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.hero-card {
  margin: 0 0 48px 7vw;
  max-width: 520px;
  padding: 28px 34px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1,
.page-hero h1,
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; }
.hero-card p:last-child { margin-bottom: 0; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 24px;
}
.section-title {
  margin: 0 0 40px;
  font-size: clamp(30px, 4vw, 48px);
  text-align: center;
  letter-spacing: .02em;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  border: 1px solid var(--line);
  background: white;
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card time { color: var(--muted); font-size: 12px; }
.news-card h3 { font-size: 20px; line-height: 1.25; margin: 8px 0 0; }

.news-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.news-card-image {
  padding: 0;
  overflow: hidden;
  justify-content: flex-start;
}
.news-card-image {
  background: #f7f5ef;
}
.news-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f7f5ef;
}
.news-body {
  padding: 24px 24px 28px;
}
.news-body p {
  margin: 12px 0 18px;
  color: #4d534d;
}
.news-body .button-link {
  margin-top: 6px;
}

.social-section {
  background: var(--green-soft);
  border-top: 1px solid var(--line);
}
.social-section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 82px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr);
  gap: 70px;
  align-items: center;
}
.social-copy h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
}
.social-copy > p:not(.eyebrow) {
  margin: 0 0 25px;
  color: #4d534d;
  max-width: 470px;
}
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.facebook-embed-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.facebook-embed {
  display: block;
  width: 100%;
  max-width: 500px;
  min-height: 620px;
  background: #fff;
}

/* ---------- Interior pages ---------- */
.page-hero {
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 58px;
}
.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
}
.page-hero p { max-width: 760px; margin: 18px 0 0; color: var(--muted); }
.content {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.content.wide { max-width: var(--max); }
.content h2 { margin-top: 46px; font-size: 27px; line-height: 1.25; }
.content h3 { margin-top: 30px; font-size: 20px; }
.content p { margin: 0 0 18px; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 7px 0; }
.lead { font-size: 20px; color: #404740; }

.info-grid,
.stats,
.people-columns,
.place-grid {
  display: grid;
  gap: 24px;
}
.info-grid { grid-template-columns: repeat(2, 1fr); }
.stats { grid-template-columns: repeat(3, 1fr); margin: 0 0 60px; }
.stat {
  padding: 28px;
  border: 1px solid var(--line);
  text-align: center;
}
.stat strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 46px; color: var(--green-dark); }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .11em; }
.people-columns { grid-template-columns: repeat(2, 1fr); }
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.panel.soft { background: var(--green-soft); border-color: transparent; }
.panel h2, .panel h3 { margin-top: 0; }

.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}
.schedule td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.schedule td:last-child { text-align: right; font-weight: 600; }
.schedule .break td { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }

.document-list { display: grid; gap: 10px; }
.document-item {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
}
.document-item span { font-weight: 500; }
.button-link {
  flex: 0 0 auto;
  display: inline-block;
  text-decoration: none;
  padding: 10px 15px;
  border: 1px solid var(--green-dark);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.button-link:hover { background: var(--green-dark); color: #fff; }

.place-grid { grid-template-columns: repeat(2, 1fr); }
.place-card { border: 1px solid var(--line); overflow: hidden; background:#fff; }
.place-card img { width: 100%; height: 260px; object-fit: cover; background: var(--green-soft); }
.place-card .place-body { padding: 24px; }
.place-card h3 { margin-top: 0; }
.remote-note {
  margin: 36px 0 0;
  padding: 16px 18px;
  background: #faf8f3;
  border-left: 3px solid var(--sand);
  color: var(--muted);
  font-size: 13px;
}

.contact-card {
  display: grid;
  gap: 20px;
  padding: 34px;
  background: var(--green-soft);
}
.contact-card a { color: var(--green-dark); font-weight: 600; }











/* ---------- Mūsu skola ---------- */
.school-story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 62px;
}
.school-story-image {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .06);
}
.school-story-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 58%;
}
.school-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 38px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.school-kicker {
  margin: 0 0 8px !important;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
.school-story-copy h2,
.school-section-heading h2,
.school-symbol-card h3,
.school-song-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--green-dark);
}
.school-story-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}
.school-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.school-facts > div {
  padding: 15px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(63,79,53,.12);
}
.school-facts strong {
  display: block;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}
.school-facts span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
}

.school-history-section,
.school-symbols-section,
.school-song-section {
  margin-bottom: 64px;
}
.school-section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}
.school-section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
}
.school-section-heading p:last-child {
  margin-bottom: 0;
  color: #555b55;
}

.school-timeline {
  display: grid;
  gap: 18px;
}
.school-history-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(27, 34, 25, .045);
}
.school-year {
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 72px;
  line-height: .95;
  text-align: center;
}
.school-history-copy h3 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--green-dark);
}
.school-history-copy p {
  margin: 0;
  color: #555b55;
}
.school-history-media {
  display: flex;
  justify-content: flex-end;
}
.school-history-card img {
  width: 100%;
  max-width: 220px;
  height: 170px;
  object-fit: cover;
  object-position: center;
  background: var(--green-soft);
  filter: grayscale(100%) contrast(1.05);
  box-shadow: 0 12px 24px rgba(27, 34, 25, .12);
}
.school-history-card .history-portrait {
  object-position: center top;
}

.school-symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.school-symbol-card {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(27, 34, 25, .045);
}
.school-symbol-image {
  height: 300px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbf8;
}
.school-symbol-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.school-symbol-image.logo-image img {
  max-width: 280px;
}
.school-symbol-body {
  padding: 24px 28px 28px;
}
.school-symbol-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}
.school-symbol-body p {
  margin: 0;
}

.school-song-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 30px;
  align-items: center;
  padding: 32px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
}
.school-song-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.1;
}
.school-song-button {
  margin-top: 6px;
  padding: 13px 20px;
}
.school-song-preview {
  display: block;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.school-song-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.manor-story-section {
  padding: 38px 34px;
  background: #faf8f3;
  border: 1px solid var(--line);
}
.manor-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 30px;
}
.manor-story-main {
  padding: 30px 32px;
  background: #fff;
  border: 1px solid var(--line);
}
.manor-story-lead {
  margin: 0 0 18px !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  line-height: 1.25;
  color: var(--green-dark);
}
.manor-story-main p:last-of-type {
  margin-bottom: 0;
}
.manor-fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.manor-fact-strip > div {
  padding: 15px 13px;
  text-align: center;
  background: var(--green-soft);
  border: 1px solid rgba(63,79,53,.12);
}
.manor-fact-strip strong {
  display: block;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
}
.manor-fact-strip span {
  display: block;
  margin-top: 5px;
  color: #5a605a;
  font-size: 10px;
  line-height: 1.35;
}
.manor-legend-card {
  position: relative;
  padding: 30px 28px;
  overflow: hidden;
  background: var(--green-dark);
  color: rgba(255,255,255,.93);
  border: 1px solid var(--green-dark);
}
.manor-legend-card .school-kicker {
  color: rgba(255,255,255,.72);
}
.manor-legend-card h3 {
  margin: 4px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  color: #fff;
}
.manor-legend-card p {
  position: relative;
  z-index: 1;
}
.manor-legend-card p:last-of-type {
  margin-bottom: 0;
}
.manor-legend-mark {
  position: absolute;
  right: 14px;
  bottom: -42px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 180px;
  line-height: 1;
  color: rgba(255,255,255,.06);
  pointer-events: none;
}
.manor-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.manor-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.manor-gallery img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.02);
}
.manor-gallery figcaption {
  padding: 10px 12px;
  color: #5a605a;
  font-size: 11px;
  text-align: center;
}
.manor-source-note {
  margin: 22px auto 0 !important;
  max-width: 760px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- Atbalsta biedrība ---------- */
.support-intro {
  margin-bottom: 30px;
  padding: 28px 32px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.support-intro .lead {
  color: var(--green-dark);
}
.support-intro p:last-child {
  margin-bottom: 0;
}
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 26px;
  margin-bottom: 34px;
}
.support-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(27, 34, 25, .045);
}
.support-details {
  background: var(--green-soft);
}
.support-label {
  margin: 0 0 5px !important;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.support-card h2,
.support-documents h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--green-dark);
}
.support-steps {
  list-style: none;
  padding: 0 !important;
  margin: 0 0 24px;
  display: grid;
  gap: 17px;
}
.support-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 !important;
}
.support-steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
}
.support-steps strong {
  display: block;
  margin-bottom: 3px;
}
.support-steps p {
  margin: 0;
  color: #555b55;
}
.support-email-button {
  padding: 13px 20px;
}
.support-detail-row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(63,79,53,.15);
}
.support-detail-row:last-child {
  border-bottom: 0;
}
.support-detail-row > span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.support-detail-row a,
.support-detail-row strong {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.support-iban strong {
  letter-spacing: .035em;
}
.support-documents {
  padding: 30px;
  background: #faf8f3;
  border: 1px solid var(--line);
}
.support-documents-heading {
  max-width: 690px;
  margin-bottom: 22px;
}
.support-documents-heading p:last-child {
  margin-bottom: 0;
}
.support-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.support-document-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.support-document-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.support-document-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.support-document-card strong {
  display: block;
  color: var(--green-dark);
}
.support-document-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.support-document-action {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ---------- Skolēnu pārvadājumi ---------- */
.transport-intro {
  margin-bottom: 30px;
  padding: 26px 30px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.transport-intro p:last-child {
  margin-bottom: 0;
}
.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.transport-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(27, 34, 25, .045);
}
.transport-label {
  margin: 0 0 4px !important;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.transport-card h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--green-dark);
}
.transport-times {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.transport-times > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.transport-times strong {
  color: var(--green-dark);
}
.transport-focus {
  background: var(--green-soft);
}
.transport-focus strong,
.transport-focus span {
  font-weight: 700;
}
.transport-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 26px;
  padding: 28px 30px;
}
.transport-info h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  color: var(--green-dark);
}
.transport-info p {
  margin: 0;
}
.transport-info a {
  color: var(--green-dark);
  font-weight: 600;
}
.transport-note {
  padding: 22px 26px;
  background: #faf8f3;
  border-left: 4px solid var(--green-dark);
}
.transport-note p {
  margin: 0 0 18px;
}
.transport-button {
  padding: 13px 20px;
}

/* ---------- E-klase ---------- */
.eclass-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
  padding: 30px 34px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.eclass-logo {
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
}
.eclass-intro p:last-of-type {
  margin-bottom: 22px;
}
.eclass-login {
  padding: 14px 22px;
  font-size: 13px;
}
.eclass-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.eclass-feature {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(27, 34, 25, .045);
}
.eclass-feature h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--green-dark);
}
.eclass-feature p {
  margin: 0;
}
.eclass-note {
  padding: 26px 30px;
  background: #faf8f3;
  border-left: 4px solid var(--green-dark);
}
.eclass-note h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--green-dark);
}
.eclass-note p:last-child {
  margin-bottom: 0;
}

/* ---------- Mācību programmas ---------- */
.program-note {
  margin: 20px 0 28px;
  padding: 24px 28px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-dark);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.program-note p:last-child {
  margin-bottom: 0;
}

/* ---------- Skolēnu uzņemšana ---------- */
.admission-hero-block {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
}
.admission-copy {
  height: 100%;
  padding: 30px 32px;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.admission-lead {
  margin: 0 0 16px !important;
  color: var(--green-dark);
}
.admission-highlight {
  margin: 18px 0 22px !important;
  padding: 16px 18px;
  background: #fff;
  border-left: 4px solid var(--green-dark);
}
.admission-visual {
  height: 100%;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 34, 25, .06);
  display: flex;
  flex-direction: column;
}
.admission-photo-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4ef;
}
.admission-button {
  padding: 14px 22px;
  font-size: 13px;
}
.admission-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}
.admission-caption {
  margin: 0;
  padding: 14px 18px 16px;
  color: var(--green-dark);
  text-align: center;
  font-weight: 600;
}
.admission-contact-card {
  padding: 28px 32px;
}
.admission-contact-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--green-dark);
}
.admission-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admission-contacts p {
  margin: 0;
}
.admission-contacts a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.admission-contacts a:hover {
  text-decoration: underline;
}
/* ---------- Skolēnu pašpārvalde ---------- */
.selfgov-intro {
  max-width: 980px;
  margin: 0 auto 38px;
  padding: 26px 34px;
  text-align: center;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.selfgov-intro p:last-child {
  margin: 0;
  color: #4d534d;
}
.selfgov-lead {
  margin: 0 0 14px !important;
  font-size: clamp(24px, 2.2vw, 32px);
  color: var(--green-dark);
}
.selfgov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: 28px;
  align-items: start;
}
.selfgov-panel {
  padding: 32px;
}
.selfgov-block + .selfgov-block {
  margin-top: 28px;
}
.selfgov-block h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--green-dark);
}
.selfgov-list {
  margin: 0;
  padding-left: 20px;
}
.selfgov-list li {
  margin: 10px 0;
}
.selfgov-contact {
  padding: 30px;
  position: sticky;
  top: 118px;
}
.selfgov-contact h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--green-dark);
}
.selfgov-contact p:last-child {
  margin-bottom: 0;
}

/* ---------- Interešu izglītība ---------- */
.interest-lead {
  max-width: 980px;
  margin: 0 auto 40px !important;
  padding: 22px 28px;
  text-align: center;
  font-size: 20px;
  line-height: 1.7;
  color: #404740;
  background: rgba(238, 241, 233, .92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(27, 34, 25, .05);
}
.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.interest-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(27, 34, 25, .06);
}
.interest-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--green-soft);
}
.interest-card-body {
  padding: 26px 28px 30px;
}
.interest-card-body h2 {
  margin: 4px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.12;
}
.interest-label {
  margin: 0 0 4px !important;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.interest-leader {
  margin: 0 0 16px !important;
  color: var(--muted);
  font-size: 13px;
}
.interest-card-body > p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: #20251f;
  color: rgba(255,255,255,.88);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
}
.footer-brand {
  flex: 0 0 auto;
  white-space: nowrap;
}
.footer-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-social-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.social-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.social-footer-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 1060px) {
  .brand-text { display: none; }
  .header-inner { gap: 16px; }
  .main-nav > a, .nav-group > button { padding-inline: 6px; font-size: 11px; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 54px; height: 54px; }
  .menu-toggle {
    margin-left: auto;
    display: grid;
    gap: 5px;
    width: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 18px 20px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.mobile-open { display: block; }
  .main-nav > a, .nav-group > button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 8px;
  }
  .social-links-header {
    display: flex;
    gap: 8px;
    margin: 8px 8px 4px;
  }
  .social-icon-header {
    width: 34px !important;
    height: 34px;
    margin: 0 !important;
    padding: 0 !important;
  }
  .dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--green-soft);
    margin: 0 0 8px 8px;
    padding: 0 0 0 10px;
  }
  .nav-group:hover .dropdown { display: none; }
  .nav-group.open .dropdown { display: block; }
  .hero { min-height: 520px; }
  .hero-card { margin: 24px; }
  .news-grid, .stats, .info-grid, .people-columns, .place-grid, .interest-grid, .selfgov-grid, .admission-hero-block, .admission-contacts, .eclass-intro, .eclass-feature-grid, .transport-grid, .transport-info, .support-grid, .support-document-grid, .school-story-hero, .school-timeline, .school-symbol-grid, .school-song-section { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { justify-content: flex-start; flex-direction: column; }
  .footer-social-links { margin-top: 2px; }
  .social-section-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 58px 24px 64px;
  }
  .facebook-embed { min-height: 620px; }
  .school-story-image { min-height: 420px; }
  .school-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .school-history-card { grid-template-columns: 120px minmax(0, 1fr) 170px; gap: 18px; }
  .school-year { font-size: 58px; }
  .school-history-copy h3 { font-size: 24px; }
  .school-history-card img { max-width: 170px; height: 140px; }
  .manor-story-grid { grid-template-columns: 1fr; }
  .manor-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 560px) {
  .hero { min-height: 440px; }
  .hero-card { margin: 18px; padding: 22px; }
  .section, .content { padding-left: 18px; padding-right: 18px; }
  .page-hero-inner { padding: 45px 18px 40px; }
  .document-item { align-items: flex-start; flex-direction: column; }
  .interest-lead {
    padding: 18px 16px;
    font-size: 20px;
  }
  .selfgov-intro {
    padding: 22px 18px;
  }
  .selfgov-panel,
  .selfgov-contact {
    padding: 24px 20px;
  }
  .selfgov-contact {
    position: static;
  }
  .school-story-copy,
  .school-song-section,
  .manor-story-section {
    padding: 22px 18px;
  }
  .school-story-image {
    min-height: 320px;
  }
  .school-facts {
    grid-template-columns: 1fr;
  }
  .school-history-card {
    display: block;
    padding: 22px 18px;
  }
  .school-year {
    text-align: left;
    font-size: 48px;
    margin-bottom: 6px;
  }
  .school-history-copy h3 {
    font-size: 24px;
  }
  .school-history-media {
    display: block;
  }
  .school-history-card img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 300px;
    margin-top: 18px;
    object-fit: contain;
  }
  .school-symbol-image {
    height: 250px;
  }
  .school-song-preview {
    height: 320px;
  }
  .manor-story-main,
  .manor-legend-card {
    padding: 22px 18px;
  }
  .manor-fact-strip {
    grid-template-columns: 1fr;
  }
  .manor-gallery {
    grid-template-columns: 1fr;
  }
  .manor-gallery img {
    height: auto;
    max-height: 420px;
    object-fit: contain;
  }
  .support-intro,
  .support-card,
  .support-documents {
    padding: 20px 18px;
  }
  .support-document-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .support-document-action {
    grid-column: 2;
  }
  .transport-intro,
  .transport-card,
  .transport-info,
  .transport-note {
    padding: 20px 18px;
  }
  .transport-times > div {
    grid-template-columns: 64px minmax(0, 1fr);
    padding-left: 8px;
    padding-right: 8px;
  }
  .transport-button {
    width: 100%;
    text-align: center;
  }
  .eclass-intro,
  .eclass-note {
    padding: 22px 18px;
  }
  .eclass-login {
    width: 100%;
    text-align: center;
  }
  .program-note {
    padding: 20px 18px;
  }
  .admission-copy,
  .admission-contact-card {
    padding: 22px 18px;
  }
  .admission-highlight {
    padding: 14px 14px;
  }
  .admission-button {
    width: 100%;
    text-align: center;
  }
}

.manor-archive-block {
  margin-top: 30px;
  padding: 28px 28px 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.manor-archive-heading {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}
.manor-archive-heading h3 {
  margin: 6px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--green-dark);
}
.manor-archive-heading p:last-child {
  margin-bottom: 0;
  color: #5b615b;
}
.manor-bottom-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.manor-bottom-card {
  text-decoration: none;
}
.manor-bottom-card figure {
  margin: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #faf8f3;
}
.manor-bottom-card img {
  width: 100%;
  height: 245px;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}
.manor-bottom-card figcaption {
  padding: 12px 12px 13px;
  color: #5a605a;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .manor-bottom-gallery {
    grid-template-columns: 1fr;
  }
}


.teachers-hero {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}
.teachers-hero-copy-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}
.teachers-hero-copy {
  padding: 34px;
  background: var(--green-soft);
}
.teachers-hero-copy h2 {
  margin: 10px 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.02;
  color: var(--green-dark);
}
.teachers-hero-image {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.teachers-hero-image-wide {
  padding: 0;
}
.teachers-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.teacher-quote {
  margin: 0;
  padding: 26px 28px;
  border-left: 4px solid var(--green-dark);
  background: #fff;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  line-height: 1.32;
  display: flex;
  align-items: center;
}
.teachers-intro-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.teacher-info-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.teacher-info-card.soft {
  background: #faf8f3;
}
.teacher-info-card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.teachers-lists-stacked {
  display: grid;
  gap: 24px;
}
.teacher-list-card-full {
  width: 100%;
}
.staff-list-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 12px;
}
.staff-list-technical {
  max-width: none;
}

.teacher-list-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.teacher-list-card-soft {
  background: var(--green-soft);
}
.teacher-list-card h3 {
  margin: 4px 0 22px;
}
.teacher-list-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 700;
  color: #5f665f;
}
.staff-list {
  display: grid;
  gap: 12px;
}
.staff-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
}
.staff-item strong {
  display: block;
  color: #1f251f;
  font-size: 16px;
  margin-bottom: 4px;
}
.staff-item span {
  display: block;
  color: #566056;
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .teachers-hero-copy-grid,
  .teachers-intro-cards,
  .teachers-grid {
    grid-template-columns: 1fr;
  }
  .staff-list-two-column {
    grid-template-columns: 1fr;
  }
  .teachers-hero-copy,
  .teacher-list-card,
  .teacher-info-card {
    padding: 22px 18px;
  }
  .teacher-quote {
    font-size: 22px;
    padding: 15px 16px;
  }
}


/* ---------- Mūsu skolēni ---------- */
.students-hero {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}
.students-photo-wrap {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.students-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.students-hero-copy {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 34px;
  text-align: center;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.students-hero-copy h2,
.students-pride-copy h2,
.students-closing h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green-dark);
  font-weight: 500;
}
.students-hero-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}
.students-hero-copy p:last-child {
  margin-bottom: 0;
}

.students-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 44px;
}
.student-value-card {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.student-value-card > span {
  display: block;
  margin-bottom: 15px;
  color: #9ba497;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
}
.student-value-card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}
.student-value-card p {
  margin: 0;
  color: #565e56;
  font-size: 14px;
  line-height: 1.65;
}

.students-pride {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 44px;
}
.students-pride-copy {
  padding: 32px 34px;
  background: #faf8f3;
  border: 1px solid var(--line);
}
.students-pride-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(31px, 3.5vw, 43px);
  line-height: 1.12;
}
.students-pride-copy p:last-child {
  margin-bottom: 0;
}
.students-paths {
  display: grid;
  gap: 10px;
}
.students-paths > div {
  padding: 18px 20px;
  background: var(--green-dark);
  color: #fff;
}
.students-paths strong,
.students-paths span {
  display: block;
}
.students-paths strong {
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: .08em;
}
.students-paths span {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.45;
}

.students-closing {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 36px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.students-closing p {
  margin-bottom: 8px;
  color: #687068;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.students-closing h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
}

@media (max-width: 980px) {
  .students-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .students-pride {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .students-values {
    grid-template-columns: 1fr;
  }
  .students-hero-copy,
  .students-pride-copy,
  .students-closing {
    padding: 22px 18px;
  }
}


/* ---------- Vide mums apkārt ---------- */
.environment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 28px;
}
.environment-hero-image {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.environment-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}
.environment-hero-copy {
  padding: 34px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.environment-hero-copy h2,
.environment-feature-copy h2,
.environment-community-copy h2,
.environment-closing h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green-dark);
  font-weight: 500;
}
.environment-hero-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
}

.environment-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}
.environment-feature-green {
  background: #faf8f3;
}
.environment-feature-copy {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.environment-feature-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(31px, 3.4vw, 43px);
  line-height: 1.12;
}
.environment-feature-image {
  min-height: 370px;
}
.environment-feature-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.environment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}
.environment-card {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.environment-card img {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
}
.environment-card-body {
  padding: 24px 26px 27px;
}
.environment-label {
  margin: 0 0 7px !important;
  color: #7a8377;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.environment-card h3 {
  margin: 0 0 11px;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.environment-card-body p:last-child {
  margin-bottom: 0;
}

.environment-community {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 22px;
  margin-bottom: 38px;
}
.environment-community-copy {
  padding: 30px 32px;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.environment-community-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 3.3vw, 41px);
}
.environment-community-copy p:last-child {
  margin-bottom: 0;
}
.environment-community-note {
  padding: 28px;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  gap: 18px;
  align-items: center;
}
.environment-community-note > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
}
.environment-community-note p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.65;
}
.environment-community-note strong {
  color: #fff;
}

.environment-closing {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 38px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.environment-closing p {
  margin: 0 0 8px;
  color: #798078;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.environment-closing h2 {
  margin: 0;
  font-size: clamp(29px, 3.5vw, 41px);
  line-height: 1.18;
}

@media (max-width: 900px) {
  .environment-hero,
  .environment-feature,
  .environment-community {
    grid-template-columns: 1fr;
  }
  .environment-hero-image img {
    min-height: 0;
    height: auto;
  }
  .environment-feature-image {
    min-height: 0;
  }
  .environment-feature-image img {
    height: auto;
  }
}
@media (max-width: 700px) {
  .environment-cards {
    grid-template-columns: 1fr;
  }
  .environment-card img {
    height: auto;
  }
  .environment-hero-copy,
  .environment-feature-copy,
  .environment-community-copy,
  .environment-community-note,
  .environment-closing {
    padding: 22px 18px;
  }
}


/* ---------- Vide mums apkārt | V39 tweaks ---------- */
.environment-hero-image img,
.environment-feature-image img,
.environment-card img,
.environment-community-visual img {
  filter: saturate(0.88) contrast(1.03) brightness(0.98) sepia(0.04);
}
.environment-card img {
  object-position: center;
}
.environment-community {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.environment-community-visual {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.environment-community-visual img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}
.environment-community-note {
  flex: 1 1 auto;
  padding: 24px 26px;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  gap: 18px;
  align-items: center;
}
@media (max-width: 900px) {
  .environment-community-visual img {
    height: auto;
  }
}


/* ---------- Vide mums apkārt | V40 ---------- */
.environment-community-visual {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  display: block;
}
.environment-community-visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
}
.environment-plus-strip {
  margin: 0 0 38px;
  padding: 26px 32px;
  background: var(--green-dark);
  color: #fff;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.environment-plus-strip > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
}
.environment-plus-strip p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.65;
}
.environment-plus-strip strong {
  color: #fff;
}
@media (max-width: 700px) {
  .environment-community-visual img {
    height: auto;
    min-height: 0;
  }
  .environment-plus-strip {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

/* ---------- Skolas dokumenti ---------- */
.documents-intro {
  max-width: 900px;
  margin: 0 auto 42px;
  padding: 34px 38px;
  text-align: center;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.documents-intro h2,
.document-section-heading h2,
.document-form-card h3,
.document-focus-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green-dark);
  font-weight: 500;
}
.documents-intro h2 {
  margin: 8px 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}
.documents-intro p:last-child { margin-bottom: 0; }

.document-section {
  margin: 0 0 48px;
}
.document-section-soft {
  padding: 32px;
  background: #faf8f3;
  border: 1px solid var(--line);
}
.document-section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}
.document-section-heading h2 {
  margin: 6px 0 10px;
  font-size: clamp(29px, 3.3vw, 40px);
  line-height: 1.12;
}
.document-section-heading p:last-child { margin-bottom: 0; color: #606860; }

.document-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.document-card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.document-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 9px 24px rgba(27,34,25,.035);
}
.document-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}
.document-type-badge,
.document-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.document-type-badge {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(63,79,53,.14);
}
.document-tag {
  background: #faf8f3;
  color: #7a725f;
  border: 1px solid var(--line);
}
.document-card h3 {
  margin: 0 0 10px;
  color: #262c26;
  font-size: 19px;
  line-height: 1.28;
}
.document-card p {
  margin: 0 0 22px;
  color: #5b635b;
  font-size: 14px;
  line-height: 1.6;
}
.document-action {
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  border-bottom: 1px solid var(--green-dark);
  padding-bottom: 4px;
}
.document-action:hover { opacity: .72; }

.document-form-section {
  max-width: 900px;
}
.document-form-card {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 28px 30px;
  background: var(--green-dark);
  color: #fff;
}
.document-form-card .document-type-badge {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.document-form-card h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 28px;
}
.document-form-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
}
.document-form-card .document-action {
  flex: 0 0 auto;
  margin-top: 0;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.document-focus-card {
  padding: 36px 38px;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.document-focus-card h2 {
  margin: 8px 0 16px;
  font-size: clamp(32px, 4vw, 44px);
}
.document-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 25px;
}
.document-secondary-action {
  color: #596159;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

@media (max-width: 760px) {
  .document-card-grid,
  .document-card-grid-two {
    grid-template-columns: 1fr;
  }
  .documents-intro,
  .document-section-soft,
  .document-focus-card {
    padding: 24px 18px;
  }
  .document-form-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}


/* ---------- Iekšējās kārtības noteikumi ---------- */
.rules-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}
.rules-hero-copy {
  padding: 34px 36px;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.rules-hero-copy h2,
.rules-message-copy h2,
.rules-document-card h2,
.rules-value-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green-dark);
  font-weight: 500;
}
.rules-hero-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
}
.rules-lead {
  font-size: 19px;
  line-height: 1.7;
}
.rules-hero-mark {
  min-height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--green-dark);
  color: #fff;
}
.rules-hero-mark span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 120px;
  line-height: .8;
  margin-bottom: 20px;
}
.rules-hero-mark strong {
  max-width: 220px;
  font-size: 12px;
  letter-spacing: .16em;
  line-height: 1.55;
}
.rules-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.rules-value-card {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.rules-value-card > span {
  display: block;
  margin-bottom: 13px;
  color: #9aa294;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
}
.rules-value-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
}
.rules-value-card p {
  margin: 0;
  color: #576057;
  font-size: 14px;
  line-height: 1.65;
}
.rules-message {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  gap: 22px;
  margin-bottom: 30px;
}
.rules-message-copy {
  padding: 32px 34px;
  background: #faf8f3;
  border: 1px solid var(--line);
}
.rules-message-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(31px, 3.5vw, 43px);
  line-height: 1.12;
}
.rules-message-copy p:last-child {
  margin-bottom: 0;
}
.rules-reminder {
  padding: 32px 30px;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rules-reminder p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.rules-reminder blockquote {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  line-height: 1.35;
}
.rules-document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 28px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rules-document-card h2 {
  margin: 6px 0 10px;
  font-size: 32px;
}
.rules-document-card p:last-child {
  margin-bottom: 0;
}
.rules-document-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 245px;
}
@media (max-width: 920px) {
  .rules-hero,
  .rules-message,
  .rules-document-card {
    grid-template-columns: 1fr;
  }
  .rules-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules-document-actions {
    min-width: 0;
  }
}
@media (max-width: 620px) {
  .rules-values {
    grid-template-columns: 1fr;
  }
  .rules-hero-copy,
  .rules-message-copy,
  .rules-reminder,
  .rules-document-card {
    padding: 22px 18px;
  }
  .rules-hero-mark span {
    font-size: 90px;
  }
  .rules-reminder blockquote {
    font-size: 24px;
  }
}


/* ---------- Skolas kalendārs ---------- */
.calendar-intro {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 30px 34px;
  text-align: center;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.calendar-intro h2 {
  margin: 8px 0 15px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  color: var(--green-dark);
  font-weight: 500;
}
.calendar-intro p:last-child { margin-bottom: 0; }
.calendar-shell {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(27, 34, 25, .05);
}
.school-calendar {
  width: 100%;
  height: 720px;
  display: block;
  border: 0;
}
.calendar-note {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 24px 26px;
  background: #faf8f3;
  border-left: 4px solid var(--green-dark);
}
.calendar-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
}
.calendar-note p {
  margin: 0;
  color: #596059;
}
.calendar-note .button-link { white-space: nowrap; }
@media (max-width: 860px) {
  .school-calendar { height: 620px; }
  .calendar-note {
    flex-direction: column;
    align-items: flex-start;
  }
  .calendar-note .button-link {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 620px) {
  .calendar-intro { padding: 22px 18px; }
  .calendar-shell { padding: 6px; }
  .school-calendar { height: 560px; }
  .calendar-note { padding: 20px 18px; }
}


/* ---------- Kontakti | V45 ---------- */
.contacts-intro {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 32px 36px;
  text-align: center;
  background: var(--green-soft);
  border: 1px solid var(--line);
}
.contacts-intro h2,
.contact-info-card h3,
.contact-location-copy h2,
.contact-social-section h2,
.contact-closing-note h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green-dark);
  font-weight: 500;
}
.contacts-intro h2 {
  margin: 8px 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}
.contacts-intro p:last-child { margin-bottom: 0; }

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 22px;
  margin-bottom: 28px;
}
.contact-info-card {
  padding: 30px 32px;
  border: 1px solid var(--line);
}
.contact-school-card { background: #fff; }
.contact-director-card {
  background: var(--green-dark);
  color: #fff;
}
.contact-label {
  margin: 0 0 8px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #7b8479;
}
.contact-info-card h3 {
  margin: 0 0 22px;
  font-size: 34px;
}
.contact-detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail span,
.contact-director-phone span {
  color: #808780;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-detail strong,
.contact-detail a {
  color: var(--green-dark);
  font-weight: 600;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.button-link-light {
  background: #f5f2eb !important;
  color: var(--green-dark) !important;
  border: 1px solid var(--line) !important;
}
.contact-director-card .contact-label,
.contact-director-card p,
.contact-director-card .contact-director-phone span {
  color: rgba(255,255,255,.72);
}
.contact-director-card h3 { color: #fff; }
.contact-director-card > p:not(.contact-label) {
  line-height: 1.7;
}
.contact-director-phone {
  margin: 26px 0 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.contact-director-phone span,
.contact-director-phone a { display: block; }
.contact-director-phone a {
  margin-top: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}
.contact-text-link {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.contact-location-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  overflow: hidden;
  background: #faf8f3;
}
.contact-location-image { min-height: 420px; }
.contact-location-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02) brightness(.98) sepia(.03);
}
.contact-location-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-location-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.12;
}
.contact-address-line {
  margin: 10px 0 22px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
  font-weight: 700;
}
.contact-location-copy .button-link { align-self: flex-start; }

.contact-social-section {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}
.contact-social-section > div:first-child { max-width: 650px; }
.contact-social-section h2 {
  margin: 6px 0 10px;
  font-size: 32px;
}
.contact-social-section p:last-child { margin-bottom: 0; }
.contact-social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-closing-note {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 30px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-closing-note p {
  margin: 0 0 7px;
  color: #7c847c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.contact-closing-note h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
}

@media (max-width: 900px) {
  .contacts-grid,
  .contact-location-card {
    grid-template-columns: 1fr;
  }
  .contact-location-image { min-height: 0; }
  .contact-location-image img { height: auto; }
  .contact-social-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-social-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .contacts-intro,
  .contact-info-card,
  .contact-location-copy,
  .contact-social-section,
  .contact-closing-note {
    padding: 22px 18px;
  }
  .contact-detail { grid-template-columns: 1fr; gap: 5px; }
  .contact-actions,
  .contact-social-actions { width: 100%; }
  .contact-actions .button-link,
  .contact-social-actions .button-link { width: 100%; text-align: center; }
}
