:root {
  --accent: #ff6b35;
  --muted: #d2d4da;
  --bg: #0f1724;
  --card: #0b1220;
  --glass: rgba(255, 255, 255, 0.04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #071028 0%, #081426 60%);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

.container {
  max-width: 1100px;
  padding: 28px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

/* ---------- LINKS ---------- */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.25s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff8659;
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(255, 107, 53, 0.4);
}

a:active {
  opacity: 0.8;
}

/* muted-ссылки (например, в футере) */
.small.muted a {
  color: var(--muted);
}

.small.muted a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- NAVIGATION ---------- */

nav a {
  color: inherit;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}

/* ---------- MAIN LAYOUT ---------- */

main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 920px) {
  main {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }

  nav {
    display: none;
  }
}

/* ---------- TEXT & ELEMENTS ---------- */

.attention {
  color: #ff6b6b;
  font-size: 115%;
  font-weight: 700;
}

.error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

/* ---------- CARDS & HERO ---------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 12px;
}

.hero h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.5px;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

/* ---------- FORM ---------- */

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea,
select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 8px;
  color: inherit;
  outline: none;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
}

.row .col {
  flex: 1;
}

button {
  background: var(--accent);
  border: none;
  color: #071023;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.12);
  transition: all 0.25s ease;
}

button:hover {
  background: #ff8659;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.22);
  transform: translateY(-1px);
}

/* ---------- TEXT STYLES ---------- */

.note {
  font-size: 13px;
  color: var(--muted);
}

.success {
  background: linear-gradient(90deg, #0b3b2b, #063b2b);
  padding: 10px;
  border-radius: 8px;
  color: #c7ffea;
}

/* ---------- FOOTER ---------- */

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- GALLERY ---------- */

.gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  width: calc(33.333% - 5px);
  height: 90px;
  border-radius: 8px;
  background: #081426;
  display: block;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 620px) {
  .thumb {
    width: calc(50% - 5px);
  }
}

/* ---------- UTILITY CLASSES ---------- */

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

pre {
  background: #021221;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  color: #9be7ff;
  font-size: 13px;
}

/* ---------- MOBILE OPTIMIZATION ---------- */

@media (max-width: 480px) {
  .card {
    padding: 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 8px 12px;
  }

  .row {
    flex-direction: column;
  }

  .col {
    flex: none;
    width: 100%;
  }

  footer {
    font-size: 12px;
  }
}
