:root {
  --cyan: #0e9fb5;
  --cyan-dark: #0b7f91;
  --cyan-darker: #096a79;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #15202b;
  --muted: #5b6b7b;
  --line: #d9e0e7;
  --cyan-tint: #dff4f7;
  --on-cyan: #ffffff;
  --on-dark: #e6edf3;
  --radius: 10px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--cyan-dark); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.section { padding-top: 48px; padding-bottom: 48px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { display: block; width: 140px; height: auto; }
.primary-nav { flex: 1 1 100%; order: 3; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.menu a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 500; }
.menu a:hover, .menu .current-menu-item > a { color: var(--cyan-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a, .lang-current { font-weight: 600; font-size: .875rem; text-decoration: none; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.lang-switch a:hover { color: var(--cyan-dark); }
.lang-current { color: var(--text); background: var(--cyan-tint); }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--surface); color: var(--text); border: 2px solid var(--cyan-dark); border-radius: var(--radius); padding: 8px 14px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.site-main:focus { outline: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-family: var(--font-text); font-weight: 600; font-size: .95rem; line-height: 1.3;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan-dark); }
/* White on --cyan-dark is about 4.7:1 (WCAG AA for normal text); --cyan alone would be about 3.2:1. */
.btn-primary { background: var(--cyan-dark); border-color: var(--cyan-dark); color: var(--on-cyan); }
.btn-primary:hover { background: var(--cyan-darker); border-color: var(--cyan-darker); color: var(--on-cyan); }

/* Layout blocks */
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.entry img { border-radius: var(--radius); }

/* Tables scroll inside their own box instead of widening the page. */
.pricing-table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-table th, .pricing-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing-table th { font-family: var(--font-head); font-weight: 600; background: var(--bg); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }

.not-found { text-align: center; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.footer-company p, .trademark { margin: 0; }
.footer-company strong { color: var(--text); font-family: var(--font-head); }
.site-footer .menu a { color: var(--muted); }
.site-footer .menu a:hover { color: var(--cyan-dark); }

@media (min-width: 640px) {
  .brand img { width: 160px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trademark { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .primary-nav { flex: 1 1 auto; order: 0; }
  .header-actions { margin-left: 0; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding-top: 72px; padding-bottom: 72px; }
}

/* Page sections (home, features, MSP, security) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 22ch; }
.hero-lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.proof .card h3 { color: var(--text); }
.proof .card p:last-child, .teaser-card p:last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 0 56px; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cyan-tint); border: 2px solid var(--cyan); color: var(--text); font-family: var(--font-head); font-weight: 700;
}
.step h3 { margin-top: 8px; }
.step p { margin-bottom: 0; color: var(--muted); }

.msp-strip { background: var(--text); color: var(--on-dark); }
.msp-strip h2 { color: var(--on-dark); }
.msp-strip-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.msp-strip-inner p { margin: 0; max-width: 60ch; }

.teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.teaser-card { display: flex; flex-direction: column; }
.teaser-card h3 { margin-bottom: .3em; }
.teaser-for { color: var(--muted); font-size: .95rem; flex: 1 1 auto; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 0 0 .2em; }
.price span { font-family: var(--font-text); font-weight: 500; font-size: .95rem; color: var(--muted); }
.price-note { font-size: .85rem; color: var(--muted); }
.teaser-action { margin: 24px 0 0; }

.cta { background: var(--surface); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; }
.cta-inner p { color: var(--muted); }
.cta-inner .hero-actions { justify-content: center; }

.page-head { padding-top: 40px; }
.page-head h1 { margin-bottom: 0; }
.page-features .section, .page-msp .section, .page-security .section { padding-top: 28px; padding-bottom: 28px; }
.page-features .feature-group, .page-msp .feature-group, .page-security .feature-group { border-top: 1px solid var(--line); }
.page-features .cta, .page-msp .cta, .page-security .cta { margin-top: 28px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 65ch; }
.supported { display: inline-block; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 10px 14px; margin: 0; }
.feature-list { margin: 0 0 1em; padding-left: 1.25em; }
.feature-list li { margin-bottom: .45em; }
.feature-list li::marker { color: var(--cyan); }
.feature-group .container > :last-child { margin-bottom: 0; }
.feature-list code { font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.trademark-note { color: var(--muted); font-size: .9rem; max-width: 75ch; }

@media (min-width: 640px) {
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .msp-strip-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .teaser-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-features .section, .page-msp .section, .page-security .section { padding-top: 32px; padding-bottom: 32px; }
}

/* Pricing page */
.page-pricing .section { padding-top: 28px; padding-bottom: 28px; }
.page-pricing .compare, .page-pricing .addons, .page-pricing .faq { border-top: 1px solid var(--line); }
.page-pricing .cta { margin-top: 28px; }
.billing-toggle { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.billing-toggle[hidden] { display: none; }
.billing-option { font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.billing-option:hover { color: var(--cyan-dark); }
.billing-option[aria-pressed="true"] { background: var(--cyan-dark); color: var(--on-cyan); }
.billing-option[aria-pressed="true"]:hover { background: var(--cyan-darker); color: var(--on-cyan); }
.billing-saving { font-size: .8rem; font-weight: 500; }
.package-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.package-card { display: flex; flex-direction: column; }
.package-card h3 { margin-bottom: .3em; }
.package-featured { border: 2px solid var(--cyan); }
.package-tag { align-self: flex-start; font-size: .8rem; font-weight: 600; background: var(--cyan-tint); color: var(--text); border-radius: 999px; padding: 2px 10px; margin: 0 0 8px; }
.package-for { color: var(--muted); font-size: .95rem; }
.price .price-amount { font-family: inherit; font-weight: inherit; font-size: inherit; color: var(--text); }
.price-badge { align-self: flex-start; font-size: .8rem; color: var(--text); background: var(--cyan-tint); border-radius: 999px; padding: 2px 10px; margin: 4px 0 0; }
.price-saving { font-size: .9rem; font-weight: 600; color: var(--cyan-dark); margin: 6px 0 0; }
.price-saving[hidden] { display: none; }
.package-list { margin: 16px 0; padding-left: 1.25em; flex: 1 1 auto; }
.package-list li { margin-bottom: .4em; }
.package-list li::marker { color: var(--cyan); }
.package-card .btn { align-self: stretch; text-align: center; justify-content: center; }
.included { color: var(--muted); max-width: 75ch; margin: 20px 0 0; }
/* Positioned so the visually-hidden cells stay inside the horizontal scroll box at narrow widths. */
.pricing-table { position: relative; }
.pricing-table caption { text-align: left; }
.pricing-table tbody th { font-family: var(--font-text); font-weight: 600; }
.pricing-table td { white-space: normal; min-width: 7em; }
.addon-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 560px; }
.addon-grid .card h3 { margin-bottom: .3em; }
.addon-grid .price-badge { display: inline-block; }

@media (min-width: 640px) {
  .package-grid, .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .package-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-pricing .section { padding-top: 32px; padding-bottom: 32px; }
}

/* Contact page */
.page-contact .section { padding-top: 28px; padding-bottom: 28px; }
.page-contact .contact-next, .page-contact .contact-details { border-top: 1px solid var(--line); }
.page-contact .contact-intro .lead { margin-bottom: 0; }
.contact-form .wpcf7 { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rp-field { display: flex; flex-direction: column; gap: 6px; }
.rp-label { font-weight: 600; }
.rp-field input, .rp-field select, .rp-field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.rp-field textarea { min-height: 9em; resize: vertical; }
.rp-field input:focus, .rp-field select:focus, .rp-field textarea:focus, .rp-consent input:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.rp-consent { margin-top: 18px; }
.rp-consent .wpcf7-list-item { margin: 0; }
.rp-consent label { display: flex; align-items: flex-start; gap: 10px; }
.rp-consent input { margin-top: .3em; flex: 0 0 auto; accent-color: var(--cyan-dark); }
.rp-form-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.rp-form-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.rp-form-actions .btn { cursor: pointer; font: inherit; font-weight: 600; }
.rp-form .wpcf7-not-valid { border-color: #b42318; }
.rp-form .wpcf7-not-valid-tip { color: #b42318; font-size: .9rem; margin-top: 4px; }
.rp-form .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: 8px; padding: 10px 14px !important; }
.contact-details p:last-child { margin-bottom: 0; }

@media (min-width: 640px) {
  .rp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-field-wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .page-contact .section { padding-top: 32px; padding-bottom: 32px; }
}

/* Homepage infrastructure image; scoped so other page heroes retain their layout. */
.page-home .hero {
  color: #fff;
  background-color: #07131e;
  background-image: linear-gradient(90deg, rgba(5, 15, 24, .94) 0%, rgba(5, 15, 24, .9) 42%, rgba(5, 15, 24, .22) 76%), url("mikrotik-hero-v2.jpg");
  background-size: cover;
  background-position: center;
  padding-block: clamp(64px, 8vw, 112px);
  min-height: 540px;
  display: flex;
  align-items: center;
  border-bottom-color: #173544;
}
.page-home .hero h1 { max-width: 23ch; }
.page-home .hero-lead { color: #d9e7ef; max-width: 53ch; }
.page-home .hero-actions { margin-top: 28px; }
.page-home .hero .btn:not(.btn-primary) { background: rgba(5, 15, 24, .5); border-color: #8ba3b3; color: #fff; }
.page-home .hero .btn:not(.btn-primary):hover { background: #193345; border-color: #fff; }
.page-home .hero :focus-visible { outline-color: #fff; outline-offset: 4px; }
@media (max-width: 640px) {
  .page-home .hero {
    min-height: 0;
    background-position: 65% center;
    background-image: linear-gradient(rgba(5, 15, 24, .88), rgba(5, 15, 24, .88)), url("mikrotik-hero-v2.jpg");
    padding-block: 56px;
  }
}

/* Local image CAPTCHA, matching the contact form and retaining keyboard focus. */
.rp-captcha { margin-top: 18px; }
.rp-captcha .captcha-image { max-width: 100%; border-color: var(--line); border-radius: 8px; padding: 14px; color: var(--text); background: var(--bg); }
.rp-captcha .captcha-image svg { width: 44px; height: 44px; }
.rp-captcha .captcha-image label > input:checked + svg,
.rp-captcha .captcha-image label > input:focus + svg { border-color: var(--cyan-dark); border-radius: 4px; }
