:root {
  --blue: #006699;
  --blue-dark: #004e75;
  --blue-deep: #08344c;
  --blue-soft: #e8f3fa;
  --green: #14804a;
  --green-dark: #0e683b;
  --ink: #1b2a33;
  --muted: #5d6d78;
  --line: #d5e1ea;
  --bg: #f2f6f9;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(8, 52, 76, 0.08);
  --radius: 16px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

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

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.site h1,
.site h2,
.site h3 {
  width: auto;
  height: auto;
  float: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

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

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-width: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 70%, #7dceff 0 3px, transparent 4px),
    linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.brand-mark::before {
  width: 10px;
  height: 10px;
  left: 8px;
  top: 12px;
}

.brand-mark::after {
  width: 16px;
  height: 16px;
  left: 5px;
  top: 9px;
  opacity: 0.7;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-tools .date {
  color: var(--muted);
}

.tool {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

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

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #8fd18f;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.btn-accent {
  background: var(--green);
}

.btn-accent:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-line {
  background: #fff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-line:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 28px 0 40px;
  align-items: start;
}

.content,
.side-card,
.plan,
.download,
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content {
  padding: 28px;
  min-width: 0;
}

.page-head {
  margin-bottom: 18px;
}

.page-head h1,
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  margin: 8px 0 0;
}

.banner {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 0 18px;
  background: var(--blue-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b7eb8 0%, var(--blue) 42%, var(--blue-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1,
.hero p {
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 46ch;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero .eyebrow {
  color: #b7e3ff;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -60px;
  width: 240px;
  height: 240px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 1.15rem;
}

.more {
  font-size: 0.9rem;
  font-weight: 700;
}

.news-list,
.link-list,
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li + li,
.link-list li + li,
.service-list li + li {
  border-top: 1px solid var(--line);
}

.news-list a,
.link-list a,
.service-list a {
  display: block;
  padding: 11px 2px;
  color: var(--ink);
  font-weight: 600;
}

.news-list a:hover,
.link-list a:hover,
.service-list a:hover {
  color: var(--blue);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.side-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.side-card form,
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-card input[type="text"],
.side-card input[type="email"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.promo {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-soft);
}

.promo img {
  display: block;
  width: 100%;
}

.anuncio {
  margin-top: 8px;
  overflow: hidden;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.plan {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
}

.plan h2 {
  font-size: 1.2rem;
}

.plan h2 span {
  color: var(--green);
}

.plan-desc {
  color: var(--muted);
  flex: 1;
}

.price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download {
  padding: 16px 18px;
  box-shadow: none;
}

.download h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.download p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.rich {
  color: var(--ink);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.rich img,
.rich video,
.rich iframe,
.rich embed,
.rich object {
  max-width: 100%;
  height: auto;
}

.rich table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.rich p {
  margin: 0 0 12px;
}

.byline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fields {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
}

.fields label,
.field-label {
  font-weight: 700;
  color: var(--ink);
}

.fields input[type="text"],
.fields input[type="password"],
.fields input[type="email"],
.fields input:not([type]),
.fields select,
.fields textarea,
.site .txt_form {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #c5d3de;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.fields textarea {
  min-height: 120px;
  resize: vertical;
}

.fields select {
  height: auto;
}

.fields input:focus,
.fields select:focus,
.fields textarea:focus,
.side-card input:focus {
  outline: 2px solid #8ec4e4;
  border-color: var(--blue);
}

.hint,
#msg,
#msglogin {
  color: var(--muted);
  font-size: 0.85rem;
}

.span-2 {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
}

.check input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

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

.captcha img {
  display: block;
  border-radius: 8px;
}

.footer {
  background: var(--blue);
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 0;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer a {
  color: #fff;
  font-weight: 700;
}

.footer img {
  width: 150px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
}

.popup {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.popup-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--blue);
}

.popup-card h1 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.popup-card p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav a {
    width: 100%;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav a.is-active,
  .nav a:hover {
    border-bottom: 0;
    border-left-color: #8fd18f;
  }

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

  .header-tools .date,
  .header-tools .mail {
    display: none;
  }

  .content {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 20px));
  }

  .header-tools .tool {
    display: none;
  }

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

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

  .hero {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
