html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1c1c1e;
  
  /* Градієнтний фон з subtle pattern та легким ефектом */
  background: linear-gradient(135deg, #f5f5f7 0%, #e0e0e3 100%), url('https://www.transparenttextures.com/patterns/cubes.png');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: cover;
}

header {
  background: linear-gradient(to right, rgba(255,255,255,0.97), rgba(255,255,255,0.85));
  color: #1c1c1e;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}

header h1 {
  margin-bottom: 12px;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: #3c3c4399;
}

nav {
  background: rgba(255,255,255,0.95);
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

nav a {
  color: #1c1c1e;
  text-decoration: none;
  margin: 0 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #0071e3;
  transform: translateY(-2px);
}

/* Контент */
main, section {
  flex: 1;
  max-width: 1000px;
  margin: 50px auto;
  padding: 60px;
  background: rgba(255,255,255,0.95);
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

main:hover, section:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* Заголовки */
h2, h3 {
  color: #1c1c1e;
  font-weight: 600;
}

h2 {
  margin-bottom: 30px;
  font-size: 2.2rem;
}

h3 {
  margin-top: 35px;
  font-size: 1.6rem;
  color: #3c3c4399;
}

ul {
  padding-left: 25px;
  margin-top: 20px;
}

.contacts a {
  display: block;
  margin: 10px 0;
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contacts a:hover {
  color: #ff375f;
  text-decoration: underline;
  transform: translateX(2px);
}

footer {
  text-align: center;
  padding: 35px 20px;
  background: linear-gradient(to top, #f5f5f7, rgba(255,255,255,0.95));
  font-size: 0.95rem;
  color: #3c3c4399;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Стандартний вигляд для великих екранів */
nav {
  background: rgba(255,255,255,0.95);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);

  display: flex;
  justify-content: center; /* горизонтальне центрування */
  flex-wrap: wrap;
  gap: 20px;               /* відстань між лінками */
}

nav a {
  color: #1c1c1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #0071e3;
  transform: translateY(-2px);
}

/* Мобільна адаптація: вертикальне меню */
@media (max-width: 1295px) {
  nav {
    flex-direction: column;  /* лінки один під одним */
    align-items: flex-start; /* вирівнювання по лівому краю */
    padding: 20px;
  }

  nav a {
    margin: 8px 0;           /* вертикальні відступи */
  }
}