*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family: Arial, Helvetica, sans-serif;
  background:#0f0f0f;
  color:white;
  line-height:1.6;
}

/* HEADER */

header{
  background:linear-gradient(90deg,#1a1a1a,#2c2c2c);
  padding:15px;
  
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* NAV CONTAINER */

.nav-container {
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: wrap;
  gap: 15px;
}

/* LOGO */

.logo img {
  height: 50px;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

/* MENU LINKS */

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-links a {
  color:white;
  text-decoration:none;
  font-weight:bold;
  padding:8px 12px;
  border-radius:6px;
  transition:0.3s;
}

.nav-links a:hover{
  background:linear-gradient(45deg,#4facfe,#7b5cff);
  transform: scale(1.1);
}

/* MAIN CONTENT */

.container{
  width: 90%;
  max-width:900px;
  margin:auto;
  padding:20px;
  text-align:center;
  
  animation: slide-in-bottom 0.7s ease-out;
}

h1{
  font-size:32px;
  margin-bottom:20px;
  animation: slide-in-bottom 0.5s ease-out;
}

h3{
  margin-top:20px;
  margin-bottom:10px;
}

/* IMAGE */

img{
  max-width:100%;
  height: auto;
  border-radius:10px;
  margin-top:15px;
  transition: 0.5s;
  
  animation: slide-in-bottom 0.7s ease-out;
}

/* HOVER ДЛЯ ЗОБРАЖЕНЬ */

img:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* MAIN BANNER */

.main-banner {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

/* LIST */

ul{
  display:inline-block;
  text-align:left;
  margin-top:10px;
  
  animation: slide-in-bottom 0.9s ease-out;
}

/* TABLE */

table{
  margin: 20px auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
}
table th[colspan] {
  text-align: center;    
  vertical-align: middle; 
}

table, th, td{
  border:1px solid #555;
}

th, td{
  padding: 10px;
  text-align: left;
}

th{
  background:#222;
}

/* TABLE IMAGE */

table td img {
  display: block;
  margin: 0 auto;
  max-height: 50px;
}

table td {
  vertical-align: middle;
  text-align: center;
}

/* CARD STYLE */

.cards{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
  margin-top:20px;
}

.card{
  background:#1a1a1a;
  padding:15px;
  border-radius:10px;
  width:250px;
  transition:0.4s;
  
  animation: slide-in-bottom 1s ease-out;
}

.card:hover{
  transform:translateY(-10px) scale(1.03);
  background:#262626;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* FOOTER */

footer{
  margin-top:40px;
  padding:15px;
  text-align:center;
  background:#111;
  color:#aaa;
  
  animation: slide-in-bottom 1.2s ease-out;
}

/* SLIDER */

.slider {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
}

.slider input {
  display: none;
}

/* Контейнер */
.slides {
  display: flex;
  width: 200%;
  transition: 0.5s;
}

.slide {
  width: 100%;
  position: relative;
}

/* Картинка */
.slide img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Текст поверх */
.slide-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 22px;
  font-weight: bold;
  background: rgba(0,0,0,0.6);
  padding: 10px 15px;
  border-radius: 6px;
  
  animation: slide-in-bottom 0.8s ease-out;
}

/* Перемикання */
#s1:checked ~ .slides {
  transform: translateX(0);
}

#s2:checked ~ .slides {
  transform: translateX(-50%);
}

/* ARROWS */

.arrows label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  width: 40px;
  height: 40px;
  color: white;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
  border-radius: 50%;
}

.next {
  right: 10px;
}

.prev {
  left: 10px;
}

.arrows label:hover {
  background: rgba(0,0,0,0.8);
}

/* DOTS */
.dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dots label {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: gray;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

#s1:checked ~ .dots label[for="s1"],
#s2:checked ~ .dots label[for="s2"] {
  background: white;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoom-in 0.3s ease;
}

/* Відкриття */
.lightbox:target {
  display: flex;
}

.lightbox-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* ANIMATIONS */

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(79,172,254,0));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(79,172,254,0.5));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(79,172,254,0));
  }
}

@keyframes slide-in-bottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* анімація */
@keyframes popup-show {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* LOGIN BUTTON */

.login-btn {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  background: linear-gradient(45deg,#4facfe,#7b5cff);
  transition: 0.3s;
}

.login-btn:hover {
  transform: scale(1.1);
}

/* POPUP */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* показ popup */
.popup:target {
  display: flex;
}

/* затемнення */
.popup-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

/* вікно */
.popup-content {
  position: relative;
  background: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  z-index: 2;
  animation: popup-show 0.4s ease;
}

/* кнопка закрити */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 22px;
  text-decoration: none;
}

/* форма */
.popup-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  background: #2c2c2c;
  color: white;
}

.popup-content button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(45deg,#4facfe,#7b5cff);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Contact Popup */

/* КНОПКА ВНИЗУ */

.contact-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;

  background: linear-gradient(45deg,#4facfe,#7b5cff);
  color: white;

  border-radius: 50px;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 1000;

  transition: 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

.chat-icon {
  width: 22px;
  height: 22px;
  fill: white;
}

.contact-text {
  font-size: 14px;
  font-weight: 500;
}

/* POPUP */

.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.contact-popup:target {
  display: flex;
}

.contact-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

/* ВІКНО */

.contact-content {
  position: relative;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  z-index: 2;
  animation: popup-show 0.4s ease;
}

.contact-content input,
.contact-content textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  background: #2c2c2c;
  color: white;
}

.contact-content textarea {
  height: 80px;
  resize: none;
}

.contact-content button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(45deg,#4facfe,#7b5cff);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* ЗАКРИТИ */

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 20px;
  text-decoration: none;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  h1 {
    font-size: 28px;
  }
  .container {
    padding: 15px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }

  h3, p {
    font-size: 16px;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .nav-links a {
    width: 90%;
    text-align: center;
    margin: 5px 0;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  footer {
    padding: 20px;
  }

  ul {
    display: block;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  .contact-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .contact-text {
    display: none;
  }

  .chat-icon {
    width: 24px;
    height: 24px;
  }
}