:root {
  --blue-dark: #062f63;
  --blue-main: #074a93;
  --blue-soft: #0b63bd;
  --orange: #ff8a00;
  --orange-dark: #e46f00;
  --red: #d71920;
  --white: #ffffff;
  --text: #172033;
  --muted: #5d6b82;
  --line: #d8e2ef;
  --bg: #f4f8fc;
  --card: #ffffff;
  --shadow: 0 12px 28px rgba(6, 47, 99, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  border-bottom: 4px solid var(--orange);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  height: 58px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 58px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover,
.button:focus {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.section img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  color: var(--blue-dark);
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.18;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}

h3 {
  margin: 24px 0 10px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  color: var(--blue-main);
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin: 8px 0;
}

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(6, 47, 99, 0.08);
}

tr {
  border-bottom: 1px solid var(--line);
}

tr:last-child {
  border-bottom: 0;
}

td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

tr:first-child td {
  background: var(--blue-main);
  color: var(--white);
  font-weight: 700;
}

.author-block {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: 22px 24px;
  background: var(--white);
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

footer {
  margin-top: 48px;
  background: var(--blue-dark);
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.footer-brand {
  font-weight: 800;
  font-size: 22px;
}

.footer-brand p {
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-start;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.88;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--orange);
  opacity: 1;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.pros-cons > div {
  padding: 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(6, 47, 99, 0.08);
}

.pros-cons h3 {
  margin-top: 0;
}

.expert-note {
  margin: 22px 0;
  padding: 18px 20px;
  background: #fff6e8;
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  color: var(--text);
}

.comparison-table tr:first-child td {
  background: var(--blue-dark);
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--blue-dark);
}

.comparison-table tr:first-child td:first-child {
  color: var(--white);
}

.faq-container {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  position: relative;
  padding: 18px 56px 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(6, 47, 99, 0.07);
}

.toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.faq-question {
  margin: 0;
  padding-right: 8px;
  color: var(--blue-dark);
  font-size: 20px;
}

.icon {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  background: var(--white);
  left: 6px;
  right: 6px;
  top: 10px;
  height: 2px;
}

.icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  margin: 14px 0 0;
  color: var(--text);
}

.toggle:checked ~ .icon::after {
  transform: rotate(0deg);
}

.toggle:checked ~ .faq-answer {
  display: block;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 22px 18px;
    border-radius: 14px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  td {
    padding: 12px;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .faq-item {
    padding: 16px 48px 16px 16px;
  }
}
