/* --- Minimal Unified CSS --- */

/* --- Body & Base --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 10px; /* prevent sticking to edges */
  background: #f9f9f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* --- Headings --- */
h1 {
  color: #00a08f;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 25px 0;
  letter-spacing: 0.6px;
}

h2 {
  color: #222;
  font-size: 26px;
  font-weight: 600;
  margin-top: 30px;
  text-align: center;
}

/* --- Links --- */
a {
  color: #00a08f;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

a:hover {
  color: #00877d;
  opacity: 0.9;
}

/* --- Navigation --- */
#nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

#nav a {
  padding: 6px 10px;
}

/* --- Buttons / CTA --- */
button, .cta-button {
  background: #00a08f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

button:hover, .cta-button:hover {
  background: #007a75;
}

/* CTA block styling */
.cta {
  text-align: center;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 25px;
  border-radius: 12px;
  margin-top: 35px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.cta a {
  display: inline-block;
  background: #00a08f;
  color: #fff;
  padding: 12px 22px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 18px;
  transition: 0.2s ease;
}

.cta a:hover {
  background: #00877d;
}

/* --- Video --- */
.video-wrapper {
  text-align: center;
  margin: 25px 0;
}

.video-wrapper video {
  display: block;
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.video-wrapper p {
  font-size: 17px;
  color: #444;
  margin-top: 10px;
  text-align: center;
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 25px;
  margin-top: 40px;
  background: #f1f1f1;
  border-radius: 10px;
  font-size: 14px;
  color: #555;
}

footer a {
  color: #00a08f;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #007a75;
}



@media (max-width: 844px) {
    #nav {
        display: block;           /* перестраиваем меню в колонку */
        justify-content: unset;   /* убираем flex выравнивание */
        padding: 0;
    }
    #nav li {
        width: 100%;             /* каждый элемент занимает всю ширину */
        margin: 5px 0;           /* вертикальный отступ между элементами */
        text-align: center;      /* центрируем текст */
    }
}


 
#nav a, .phoneText {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    white-space: normal;
}