:root {
  --blue: #333399;
  --orange: #ff6600;
  --hover: #2284e6;
  --text: #1f2330;
  --muted: #5c6675;
  --line: #d7dced;
  --soft: #f4f6fc;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(100deg, #2a2a7a 0%, #333399 45%, #3a55bf 100%);
  border-bottom: 3px solid var(--orange);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.masthead:hover {
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 88px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: #fff;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.brand-name span {
  margin-left: 0.26em;
  color: var(--orange);
  font-weight: 700;
}

.brand-tag {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
}

.nav {
  background: var(--blue);
}

.nav-inner {
  display: flex;
  align-items: stretch;
}

.nav-links {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
}

.nav a {
  flex: 1 1 120px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  padding: 15px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav a:last-child {
  border-right: 0;
}

.nav a:hover {
  background: var(--hover);
  text-decoration: none;
}

.nav a.active {
  background: var(--orange);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 15px 4px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  background: #fff;
}

.content {
  padding: 40px 0 56px;
}

h1 {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--orange);
  color: var(--blue);
  line-height: 1.2;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h2 {
  margin: 36px 0 12px;
  color: var(--blue);
  line-height: 1.25;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

li {
  margin: 0 0 8px;
}

li > ul {
  margin: 8px 0 0 22px;
}

.table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
}

.content table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
}

.content th,
.content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content thead th {
  background: var(--blue);
  color: #fff;
}

.content tbody tr:nth-child(even) {
  background: var(--soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  text-decoration: none;
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(51, 51, 153, 0.12);
}

.card:hover .more {
  text-decoration: underline;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.98rem;
}

.card .more {
  margin-top: 12px;
  color: var(--orange);
  font-weight: 700;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.review-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
}

.review-card:hover {
  border-color: var(--blue);
  text-decoration: none;
}

.review-card strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.25;
}

.review-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
}

.footer-inner {
  padding: 30px 0 26px;
}

.footer-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-row a {
  color: #fff;
}

.footer-main a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-reviews {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  gap: 14px 26px;
}

.footer-reviews a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.faq {
  margin-top: 10px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.faq-item summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 18px;
}

@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  #nav-toggle:checked ~ .nav .nav-links {
    display: flex;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: left;
    padding: 14px 16px;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 32px 0 44px;
  }
}
