*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #121212;
  background: #f7f7f9;
}

a {
  color: #0b57d0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  padding: 48px 0 32px;
  background: #101827;
  color: #f9fafb;
}

.site-header h1 {
  margin: 0 0 12px;
  font-size: 2.5rem;
}

.subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: #d1d5db;
}

.section {
  padding: 32px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card-grid-videos {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  clip-path: polygon(16px 8px, 16px 40px, 52px 24px);
  transition: background 0.2s;
}

.video-thumb:hover .video-play {
  background: #fff;
}

.video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}

.card h3 {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0b57d0;
  color: #ffffff;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
  background: #0946a6;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.request-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.request-form input,
.request-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

.request-form button {
  justify-self: start;
  border: none;
  cursor: pointer;
}

.request-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-message-success {
  background: #dcfce7;
  color: #166534;
}

.form-message-error {
  background: #fee2e2;
  color: #991b1b;
}

.hint {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

.muted {
  color: #6b7280;
}

.site-footer {
  padding: 32px 0;
  background: #0f172a;
  color: #e5e7eb;
}

.site-footer a {
  color: #bfdbfe;
}

@media (max-width: 640px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }
}
