﻿:root {
  --primary: #004080;
  --primary-light: #0867bd;
  --background: #f3f6fa;
  --surface: #ffffff;
  --text: #263442;
  --muted: #5e6b78;
  --border: #d9e2ec;
  --soft-blue: #edf5fc;
  --shadow: 0 8px 24px rgba(22, 51, 79, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-light);
}

.site-header {
  padding: 54px 20px;
  background: linear-gradient(135deg, #00386f, #0867bd);
  color: #fff;
  text-align: center;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 6px;
  color: #d7ecff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.site-header p:last-child {
  margin: 12px 0 0;
  color: #e8f4ff;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: -24px auto 40px;
}

.intro,
.faq-section,
.support-card {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 1.42rem;
  line-height: 1.3;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

.notice {
  padding: 13px 16px;
  border-left: 4px solid var(--primary-light);
  border-radius: 6px;
  background: var(--soft-blue);
}

details {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

summary {
  position: relative;
  padding: 17px 48px 17px 18px;
  color: #173650;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "+";
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

details[open] summary {
  background: var(--soft-blue);
}

details[open] summary::after {
  content: "−";
}

summary:focus-visible,
.button:focus-visible,
.floating-menu a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #f7ba2a;
  outline-offset: 3px;
}

.answer {
  padding: 17px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.answer ul,
.answer ol {
  margin: 0;
  padding-left: 22px;
}

.answer li + li {
  margin-top: 7px;
}

.contact-list {
  list-style: none;
  padding-left: 0 !important;
}

.support-card {
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-light);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--primary);
}

footer {
  padding: 20px;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

footer p {
  margin: 0;
}

.floating-wrapper {
  position: fixed;
  top: 50%;
  right: 10px;
  z-index: 9999;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-menu a {
  display: flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.floating-menu a:hover,
.floating-menu a[aria-current="page"] {
  background: var(--primary-light);
  transform: scale(1.08);
}

.floating-menu a[aria-current="page"] {
  border-color: #fff;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 68px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.floating-wrapper.hide .floating-menu {
  display: none;
}

.floating-wrapper.hide .menu-toggle {
  display: block;
}

@media (max-width: 720px) {
  .site-header {
    padding: 42px 18px 46px;
  }

  main {
    width: min(100% - 20px, 960px);
    margin-top: -18px;
  }

  .intro,
  .faq-section,
  .support-card {
    padding: 20px 16px;
    border-radius: 11px;
  }

  .floating-wrapper {
    right: 6px;
  }

  .floating-menu a {
    width: 39px;
    height: 39px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .floating-menu a {
    transition: none;
  }
}
