/* Общие стили */

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #0f1f10, #1a3521);
  color: #eee;
  overflow-x: hidden;
}

/* Хедер и логотип */

header {
  background: linear-gradient(135deg, #234a23, #1a3521);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 10px rgba(20, 70, 20, 0.7);
}

.logo-block img {
  width: 200px;
  height: 100px;
  filter: drop-shadow(0 0 5px #7bd175);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.logo-block img:hover {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 0 10px #a0e77a);
}

/* Контейнер для меню - центрирует и ограничивает ширину */

.menu-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Навигация — сетка 2x2 под логотипом */

nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
  justify-content: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #1a3521, #0f1f10);
  border-radius: 0 0 15px 15px;
  box-shadow: inset 0 -2px 8px rgba(30, 70, 30, 0.6);
}

nav a {
  color: #f3f7f2;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 3px 6px rgba(46, 125, 50, 0.3);
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  cursor: pointer;
  padding: 12px 22px;
  font-size: 1rem;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

}

nav a:hover {
  background: linear-gradient(135deg, #4db64b, #2f8a3e);
  border-color: #7bd175;
  color: #e0ffe1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 209, 117, 0.9);
}

nav a.active {
  background: linear-gradient(135deg, #5eb349, #7bd175);
  border-color: #a0e77a;
  color: #f0fff0;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(123, 209, 117, 1);
}

/* Магическая рамка */

.magic-frame {
  max-width: 720px;
  margin: 40px auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, #142b1c, #1e3a29);
  border-radius: 15px;
  box-shadow:
    0 0 15px 4px rgba(46, 125, 50, 0.6),
    inset 0 0 20px 6px rgba(30, 58, 41, 0.8);
  color: #a3d9a5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.magic-frame::before,
.magic-frame::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid #7bd175cc;
  border-radius: 50% 0 50% 0;
  box-shadow: 0 0 15px #7bd175cc;
  text-align: center;
}

.magic-frame::before {
  top: 15px;
  left: 15px;
  border-bottom: none;
  border-right: none;
}

.magic-frame::after {
  bottom: 15px;
  right: 15px;
  border-top: none;
  border-left: none;
}

.magic-frame h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #f3f7f2;
  text-shadow: 0 0 10px #7bd175aa;
}

/* Кнопки кейсов */

.cases-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.case-btn {
  background: linear-gradient(145deg, #2b5f29, #1e3a1b);
  color: #cdf0c1;
  border: 2px solid #3d7c34;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.5);
  transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  user-select: none;
}

.case-btn:hover {
  background: linear-gradient(145deg, #4db64b, #2f8a3e);
  border-color: #7bd175;
  transform: translateY(-3px);
  color: #e0ffe1;
}

/* Детали кейса */

.case-details {
  background: linear-gradient(135deg, #1b2a1b, #234126);
  border: 2px solid #3f7b38;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow:
    0 0 15px 5px rgba(123, 209, 117, 0.5),
    inset 0 0 15px 5px rgba(46, 125, 50, 0.6);
  color: #c3e6c3;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.5;
}

.case-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #a2d46a;
  text-shadow: 0 0 6px #a2d46a;
}

.case-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.case-details li {
  margin-bottom: 8px;
  font-weight: 600;
}

.case-details strong {
  color: #90c773;
}

/* Кнопка заказать */

.parent {
  text-align: center;
}

.order-btn {
  display: inline-flex;           /* flex, чтобы удобно центрировать */
  justify-content: center;        /* горизонтальное выравнивание */
  align-items: center;            /* вертикальное выравнивание */
  width: 180px;                   /* фиксированная ширина (подбери под свой дизайн) */
  height: 45px;                   /* фиксированная высота */
  padding: 0 20px;                /* горизонтальные отступы внутри */
  font-size: 1rem;
  font-weight: 700;
  color: #e5f6e5;
  background: linear-gradient(145deg, #3d7c34, #5eb349);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(123, 209, 117, 0.7);
  transition: background 0.3s ease, transform 0.2s ease;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;            /* запрет переноса */
  box-sizing: border-box;
  text-align: center;
}

.order-btn:hover {
  background: linear-gradient(145deg, #5eb349, #7bd175);
  transform: translateY(-3px);
}


/* Футер */

footer {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #1a3521, #0f1f10);
  color: #f3f7f2;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 3px rgba(46, 125, 50, 0.7);
  border-radius: 15px 15px 0 0;
  user-select: none;
}

/* Контакты над футером — магический стиль */
.contacts-block {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 20px 0;
  position: relative;
}

.contact-btn {
  position: relative;
  background: linear-gradient(145deg, #262626, #1c1c1c);
  color: #ddd;
  border: 1px solid #444;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(123, 209, 117, 0.3); /* лёгкое свечение */
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-btn:hover {
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  border-color: #7bd175; /* магическая подсветка */
  color: #f0f0f0;
  box-shadow: 0 0 12px rgba(123, 209, 117, 0.6); /* усиливаем свечение на ховер */
  transform: translateY(-1px);
}

/* Адаптивные стили для мобильных */

@media (max-width: 480px) {
  .cases-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }

  .case-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.7);
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .case-btn:hover {
    background: linear-gradient(145deg, #4db64b, #2f8a3e);
    transform: translateY(-3px);
  }

  .order-btn {
    width: 100%;
    padding: 16px 0;
    font-size: 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(123, 209, 117, 0.9);
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .order-btn:hover {
    background: linear-gradient(145deg, #5eb349, #7bd175);
    transform: translateY(-3px);
  }
}





