:root {
  --bg-gradient: linear-gradient(135deg, #667eea, #764ba2);
  --text-color: #ffffff;
  --muted-text: rgba(255, 255, 255, 0.82);
  --panel-bg: rgba(255, 255, 255, 0.15);
  --panel-border: rgba(255, 255, 255, 0.18);
  --field-bg: rgba(255, 255, 255, 0.12);
  --field-border: rgba(255, 255, 255, 0.22);
  --button-bg: #ffcc00;
  --button-hover-bg: #ffdb4d;
  --button-text: #333333;
}

body[data-theme="light"] {
  --bg-gradient: linear-gradient(135deg, #f8fafc, #dbeafe);
  --text-color: #1f2937;
  --muted-text: #4b5563;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(31, 41, 55, 0.08);
  --field-bg: rgba(255, 255, 255, 0.95);
  --field-border: rgba(31, 41, 55, 0.12);
  --button-bg: #1f2937;
  --button-hover-bg: #374151;
  --button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}

.hero,
.contact-card,
.comments-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
}

.hero {
  text-align: center;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 44px);
}

h2 {
  font-size: 28px;
}

.subtitle,
.contact-copy {
  margin: 14px 0 0;
  color: var(--muted-text);
  line-height: 1.6;
}

button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: var(--button-hover-bg);
  transform: translateY(-1px);
}

.toolbar button {
  margin-top: 0;
  padding: 10px 18px;
  font-size: 14px;
}

.container {
  margin-top: 32px;
}

.set {
  width: min(100%, 360px);
  margin: 15px auto;
  padding: 15px;
  border-radius: 15px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: background 0.3s ease;
}

.ball {
  display: inline-block;
  width: 45px;
  height: 45px;
  margin: 5px;
  border-radius: 50%;
  line-height: 45px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.contact-form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  font-size: 14px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  width: 100%;
}

.comments-card {
  margin-top: 32px;
}

.comments-copy {
  margin: 14px 0 24px;
  color: var(--muted-text);
  line-height: 1.6;
}

#disqus_thread {
  min-height: 180px;
}

.yellow { background: #fbc400; }
.blue { background: #69c8f2; }
.red { background: #ff7272; }
.gray { background: #aaa; }
.green { background: #7ee081; }

@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }
}
