:root {
    --bg: #f5fbfa;
    --card: #ffffff;
    --text: #173330;
    --muted: #647774;
    --accent: #188878;
    --accent-dark: #0f6558;
    --soft: #e7f5f2;
    --border: #d8ebe7;
    --error: #a03232;
    --success: #176b4f;
}

* { box-sizing: border-box;}

body {
    margin: 0;
    background: linear-gradient(180deg, #f5fbfa, #ffffff);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: min(820px, 92%);
    margin: 0 auto;
    padding: 42px 0 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(23, 51, 48, 0.08);
    padding: 40px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

h1 {
	font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    margin: 0 0 14px;
	text-align: center;
}

.intro {
    color: var(--muted);
    font-size: 18px;
    margin: 0 0 28px;
	text-align: center;
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-weight: 700;
}

.alert-success {
    background: #e8f7ef;
    color: var(--success);
    border: 1px solid #cfeedd;
	text-align: center;
}

.alert-error {
    background: #fff0f0;
    color: var(--error);
    border: 1px solid #f1cece;
}

.hidden-field { display: none;}

.form-group { margin-bottom: 18px;}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
}

input:focus, textarea:focus {
    outline: 2px solid var(--soft);
    border-color: var(--accent);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.btn {
    display: inline-block;
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(24, 136, 120, 0.25);
    transition: 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.success-actions { text-align: center;}

.secondary-btn {
    display: inline-block;
    margin-top: 18px;
    background: #eef7f5;
    color: #0f6558;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.secondary-btn:hover, .secondary-btn:focus {
    background: #d9eee8;
    color: #0f6558;
    transform: translateY(-1px);
}

.footer-links {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
	text-align: center;
}

.footer-links a { color: var(--accent-dark);}

@media (max-width: 820px) {
  .hero,
  .hero-grid,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .quiz-card,
  .content,
  .sidebar,
  .card,
  .footer-card {
    padding: 22px;
  }
}

@media (max-width: 720px) {
    .card { padding: 28px;}
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.08;
  }

  h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  p,
  li {
    font-size: 16px;
  }
}