/* Общие стили */

body {
margin: 0;
        padding: 0;
        font-family: 'Segoe UI', sans-serif;
        background-color: #000;
        color: #e0e0e0;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
}
html, body {
  scrollbar-gutter: stable;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: 60px;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 0 40px 0;
  color: #fff;
}

/* Хедер */
header {
  background-color: #000;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border-bottom: 1px solid #1c1c1c;
}

.nav-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

/* Резюме-кнопка */
.resume-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid #555;
  background-color: transparent;
  z-index: 1;
}

.resume-btn canvas.button-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.resume-btn span {
  position: relative;
  z-index: 1;
}

.resume-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
/* Canvas фон */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Форма обратной связи */
.feedback-form {
  background-color: #0e0e0e;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 600px; /* было 600px, стало 900px */
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.feedback-form input,
.feedback-form textarea {
  background-color: #1c1c1c;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 14px;
  font-size: 1rem;
  resize: none;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #555;
  outline: none;
}

.feedback-form button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center; /* чтобы кнопка не была на всю ширину */
}

.feedback-form button:hover {
  background-color: #555;
}


/* Контакты */
.contacts {
  background-color: #0e0e0e;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around; /* Можно center / space-between / space-evenly */
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Чтобы на мобильных переносилось красиво */
}

.contacts div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.contacts a:hover {
  color: #fff;
}

.contacts i {
  font-size: 1.2rem;
  color: #ccc;
}


/* Футер */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: #000;
  padding: 1px;
  text-align: center;
  color: #888;
  font-size: 1rem;
  border-top: 1px solid #1c1c1c;
  flex-shrink: 0;
}

/* Иконка кота в футере */
.cat {
  color: #fff;
}

#form-message {
    position: absolute;
    top: 70px; /* под хедером */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c1c1c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#form-message.success {
    border-left: 4px solid #ddd;
}

#form-message.error {
    border-left: 4px solid #ff0000;
}

#form-message.visible {
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    display: none;
}
