* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #fafafa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}
a {
  text-decoration: none;
  font-weight: 700;
  color: #333;
}
a:hover {
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Header & navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 15px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #2a7a62;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #2a7a62;
  border-bottom-color: #2a7a62;
}

/* Main content */
main {
  padding: 40px 0;
  min-height: 60vh;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1e4a3d;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}

h3 {
  font-size: 1.4rem;
}

/* Placeholder for photos */
.photo-placeholder {
  background-color: #e0e0e0;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.photo-placeholder.one-to-one {
  aspect-ratio: 1 / 1;
}

.photo-placeholder.landscape {
  aspect-ratio: 16 / 9;
}

.photo-placeholder.portrait {
  aspect-ratio: 3 / 4;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid і карткі */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 20px;
}

.grid-2.text-include {
  grid-template-columns: 1fr 2fr;
}
.grid-2.text-include-reverse {
  grid-template-columns: 2fr 1fr;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.grid-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.card {
  background: transparent;
  text-align: center;
}

.card .photo-placeholder {
  margin-bottom: 10px;
}

.card p {
  font-weight: 500;
  color: #2a7a62;
}

/* Табліцы */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #2a7a62;
  color: #fff;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Галерэя */
.gallery-section {
  margin-bottom: 50px;
}

.gallery-divider {
  font-size: 1.8rem;
  color: #1e4a3d;
  border-bottom: 2px solid #2a7a62;
  padding-bottom: 10px;
  margin-bottom: 25px;
  position: relative;
}

.gallery-divider::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #2a7a62;
  border-radius: 2px;
}

/* Падвал */
footer {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 20px 0;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

/* ===== Дадатковыя стылі (памяткі, парады) ===== */
.table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

.rule-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  border-left: 4px solid #2a7a62;
}

.rule-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1e4a3d;
  font-family: 'Montserrat', sans-serif;
}

.rule-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2a7a62;
  font-family: 'Montserrat', sans-serif;
}

.rule-card ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

.rule-card li {
  margin-bottom: 5px;
}

.example-list {
  background: #f0f7f4;
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
}

.example-list p {
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.mini-card {
  background-color: #e0e0e0;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  color: #333;
  font-weight: 500;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.mini-card small {
  font-size: 0.8rem;
  color: #2a7a62;
  display: block;
  margin-top: 5px;
}

/* стылі для старонкі Бацькам */
.charming-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #1e4a3d;
  background: #e8f3ef;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
  border-left: 4px solid #2a7a62;
}

.word-list {
  columns: 2;
  column-gap: 30px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin: 10px 0;
}

.word-list p {
  margin-bottom: 5px;
  font-weight: 500;
}

/* ===== МАБІЛЬНАЯ ВЕРСІЯ (ДА 768px) ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  /* Усе сеткі робім аднакалоначнымі */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-7 {
    grid-template-columns: 1fr;
  }

  /* Асабліва для блока з фота і тэкстам на галоўнай */
  .grid-2.text-include {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .grid-2.text-include .photo-placeholder {
    max-width: 280px;
    margin: 0 auto;
  }

  .grid-2 {
    gap: 30px;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .charming-quote {
    padding: 15px;
    font-size: 1rem;
    margin: 20px 0;
  }

  .word-list {
    columns: 1;
  }
}
/* Стылі для кнопкі-спасылкі */
.button {
  margin: 10px auto;
  display: inline-block;
  background-color: #2a7a62;       /* асноўны зялёны колер */
  color: #fff;                      /* белы тэкст */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;            /* прыбраць падкрэсліванне */
  padding: 10px 20px;               /* унутраныя водступы */
  border-radius: 4px;               /* невялікае скругленне */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* лёгкі цень */
  transition: background-color 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.button:hover {
  background-color: #1e4a3d;        /* цямнейшы адценне пры навядзенні */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button:active {
  transform: translateY(1px);        /* эфект націску */
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Калі трэба зрабіць кнопку на ўсю шырыню кантэйнера */
.button.block {
  display: block;
  width: 100%;
}

/* Lightbox для увеличения фото */
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  display: block;
  max-width: 90vw;      /* не шире 90% ширины окна */
  max-height: 80vh;     /* не выше 80% высоты окна */
  width: auto;
  height: auto;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: #2a7a62;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.lightbox-close:hover {
  background-color: #1e4a3d;
}

/* Курсор-указатель на всех фото */
.photo-placeholder img {
  cursor: pointer;
}