:root {
  --primary: #4aa3ff;
  --secondary: #4caf50;
  --bg: #f4f9ff;
  --text: #1f2a36;
  --card: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: #1f2a36;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

header {
  background: linear-gradient(135deg, var(--primary), #6ec6ff);
  color: white;
  padding: 30px 20px 40px;
}

.header-inner {
  max-width: 900px;
  margin: auto;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.header-left img {
  width: 70px;
  border: 3px solid white;
  border-radius: 18px;
}

.header-left h1,
.site-title {
  margin: 5px 0;
  font-size: 1.8em;
  color: #1f2a36;
  font-weight: 700;
}

.header-left p {
  margin: 0;
  opacity: 0.95;
  color: #1f2a36;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: white;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1f2a36;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
}

.header-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.header-menu {
  min-width: 0;
  width: 32ch;
  max-width: min(100%, calc(100vw - 40px));
  position: relative;
}

.header-actions .btn-primary {
  width: 32ch;
  max-width: min(100%, calc(100vw - 40px));
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.menu-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.menu-summary {
  list-style: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

.menu-summary::-webkit-details-marker {
  display: none;
}

.menu-summary::after {
  content: "▾";
  margin-left: 10px;
  opacity: 0.9;
}

.menu-dropdown[open] .menu-summary {
  background: rgba(255, 255, 255, 0.3);
}

.menu-list {
  margin: 8px 0 0;
  padding: 8px;
  list-style: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: max(100%, 36ch);
  width: max-content;
  max-width: min(calc(100vw - 24px), 52ch);
  overflow-x: auto;
  background: #e9f4ff;
  border: 1px solid #b6d6f5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 38, 61, 0.18);
  z-index: 50;
}

.menu-list a {
  display: block;
  text-decoration: none;
  color: #1f2a36;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
  text-align: center;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: #d4e9ff;
}

.menu-list a.current {
  background: #4aa3ff;
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-secondary {
  background: var(--secondary);
}

.btn-promo {
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  border: 2px solid #ffd54f;
  color: #1f2a36;
  font-weight: bold;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.promo-banner {
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  border: 2px solid #ffd54f;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.promo-banner a {
  text-decoration: none;
  color: #1f2a36;
  font-weight: bold;
  font-size: 1.2em;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.feature {
  background: #f9fcff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e3eefc;
}

.buttons {
  text-align: center;
  margin: 30px 0;
}

.highlight {
  background: #e8f5e9;
  border-left: 5px solid var(--secondary);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  padding: 30px 20px;
}

ul {
  padding-left: 20px;
}

@media (max-width: 920px) {
  .header-actions {
    margin-top: 10px;
    width: auto;
    align-items: center;
  }

  .header-menu {
    width: min(100%, 32ch);
  }

  .header-actions .btn-primary {
    width: min(100%, 32ch);
  }

  .menu-list {
    max-width: calc(100vw - 24px);
  }
}
