* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { color: #333; line-height: 1.6; background-color: #f9f9f9; overflow-x: hidden; padding-top: 70px; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
header {
    background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; gap: 12px; position: relative;
}
.logo { font-size: 20px; font-weight: 700; color: #2c5aa0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { height: 36px; width: auto; pointer-events: none; }
.logo span { color: #4CAF50; white-space: nowrap; pointer-events: none; }
.logo a {
    text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px;
    cursor: pointer; position: relative; z-index: 2;
}
.logo a:hover span { text-decoration: underline; }

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
nav ul { display: flex; list-style: none; flex-wrap: nowrap; align-items: center; margin: 0; padding: 0; }
nav ul li { margin-left: 14px; }
nav ul li a {
    text-decoration: none; color: #333; font-weight: 500; font-size: 14px;
    transition: color 0.3s; position: relative; white-space: nowrap;
}
nav ul li a:hover { color: #2c5aa0; }
nav ul li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background-color: #2c5aa0; transition: width 0.3s ease;
}
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
nav ul li a.active { color: #2c5aa0; }

.nav-cta { flex-shrink: 0; margin-left: 12px; }
.nav-cta .btn { padding: 8px 16px; font-size: 13px; white-space: nowrap; }

/* Hamburger */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; padding: 10px; margin-left: auto;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    border-radius: 6px; z-index: 1002;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: #2c5aa0;
    border-radius: 1px; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1001; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile-panel {
    position: absolute; top: 0; right: 0; width: min(320px, 88vw); height: 100%;
    background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: 80px 24px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.nav-mobile.open .nav-mobile-panel { transform: translateX(0); }
.nav-mobile-panel ul { list-style: none; padding: 0; margin: 0 0 24px; }
.nav-mobile-panel li { border-bottom: 1px solid #eee; }
.nav-mobile-panel a {
    display: block; padding: 14px 4px; color: #333; text-decoration: none;
    font-weight: 600; font-size: 16px;
}
.nav-mobile-panel a.active, .nav-mobile-panel a:hover { color: #2c5aa0; }
.nav-mobile-panel .btn { width: 100%; text-align: center; margin-top: 8px; }

/* Buttons */
/* Uiverse-style circle-fill buttons (adapted for site .btn links) */
.btn {
    --color: #0077ff;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6em;
    padding: 0 1.4em;
    height: 2.6em;
    line-height: 1.2;
    overflow: hidden;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
    color: var(--color);
    background: transparent;
    border: 2px solid var(--color);
    border-radius: 6px;
    position: relative;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.btn:hover,
.btn:focus,
.btn:active,
.btn:visited {
    text-decoration: none !important;
}
.btn::before {
    position: absolute;
    content: "";
    background: var(--color);
    width: 150px;
    height: 200px;
    z-index: -1;
    border-radius: 50%;
    top: 100%;
    left: 100%;
    transition: 0.3s all;
}
.btn:hover {
    color: #fff;
    background: transparent;
    transform: none;
    box-shadow: none;
    text-decoration: none !important;
}
.btn:hover::before {
    top: -30px;
    left: -30px;
}
.btn-primary {
    --color: #2c5aa0;
    color: var(--color);
    border-color: var(--color);
    background: transparent;
}
.btn-primary:hover {
    color: #fff;
    background: transparent;
}
.btn-outline {
    --color: #ffffff;
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
}
.btn-outline:hover {
    color: #2c5aa0;
    background: transparent;
}
.btn-outline::before {
    background: #ffffff;
}
.btn-outline:hover::before {
    top: -30px;
    left: -30px;
}
/* Default (non-primary) green accent option */
.btn:not(.btn-primary):not(.btn-outline) {
    --color: #4CAF50;
}

/* Coolinput — Uiverse-style floating label inputs (site theme) */
.coolinput {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    max-width: 100%;
    margin-bottom: 18px;
}
.coolinput label.text {
    font-size: 0.75rem;
    color: #2c5aa0;
    font-weight: 700;
    position: relative;
    top: 0.55rem;
    margin: 0 0 0 10px;
    padding: 0 4px;
    background: #fff;
    width: fit-content;
    z-index: 1;
    line-height: 1;
}
.coolinput .input,
.coolinput input.input,
.coolinput select.input,
.coolinput textarea.input {
    padding: 12px 12px;
    font-size: 0.9rem;
    border: 2px solid #2c5aa0;
    border-radius: 6px;
    background: #fff;
    color: #222;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.coolinput .input:focus,
.coolinput input.input:focus,
.coolinput select.input:focus,
.coolinput textarea.input:focus {
    outline: none;
    border-color: #1e3d72;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}
.coolinput textarea.input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.45;
}
.coolinput select.input {
    cursor: pointer;
    appearance: auto;
}

/* Footer */
footer { background-color: #2c3e50; color: white; padding: 28px 0 16px; margin-top: 36px; }
.footer-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 16px; }
.footer-column h3 { margin-bottom: 8px; font-size: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { color: #bdc3c7; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-contact { color: #bdc3c7; list-style: none; }
.footer-contact li { margin-bottom: 4px; font-size: 13px; word-break: break-word; }
.copyright { text-align: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); color: #bdc3c7; font-size: 13px; }

/* Animations */
/* Content visible by default — never hide for animation */
.animate { opacity: 1; transform: none; }
.animate.animated { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .animate { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Tables — always scrollable on small screens */
.table-wrap, .comparison-table-container, .table-responsive {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px;
}
table { max-width: 100%; }
.comparison-table, .spec-table, .compare-table { min-width: 560px; }

/* Forms */
input, select, textarea, button { font-size: 16px; max-width: 100%; }
/* 16px prevents iOS zoom on focus */

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 16px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55); color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float .wa-tooltip {
    position: absolute; right: 66px; background: #128C7E; color: #fff;
    padding: 8px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ========== TABLET ========== */
@media (max-width: 992px) {
    nav ul li { margin-left: 10px; }
    nav ul li a { font-size: 13px; }
    .nav-cta .btn { padding: 8px 12px; font-size: 12px; }
    .logo { font-size: 18px; }
    .logo span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .header-container { padding: 8px 0; min-height: 52px; }
    .logo img { height: 32px; }
    .logo span { font-size: 16px; }

    .nav-desktop { display: none !important; }
    .nav-toggle { display: flex; }

    .footer-content { grid-template-columns: 1fr; gap: 18px; text-align: left; }
    footer { padding: 24px 0 18px; margin-top: 28px; padding-bottom: 80px; /* room for WA */ }

    .btn { padding: 12px 20px; font-size: 15px; }
    .nav-cta { display: none; } /* quote lives in mobile menu */

    /* Common page patterns */
    .page-header { padding: 90px 0 50px !important; }
    .page-header h1 { font-size: 26px !important; line-height: 1.25; }
    .page-header p { font-size: 15px !important; padding: 0 4px; }

    .section-title { font-size: 22px !important; }
    .section-subtitle { font-size: 15px !important; margin-bottom: 28px !important; }

    .hero { padding: 100px 0 60px !important; }
    .hero h1 { font-size: 28px !important; }
    .hero p { font-size: 16px !important; }

    .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px !important; }
    .cta-buttons .btn { width: 100%; }

    .product-grid { grid-template-columns: 1fr !important; max-width: 100% !important; gap: 20px !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .two-col, .values-grid, .pillars, .benefits-grid, .team-grid, .guide-grid,
    .contact-wrapper, .form-row { grid-template-columns: 1fr !important; gap: 20px !important; }

    .contact-form, .quotation-form, .request-box { padding: 20px !important; }
    .info-card, .product-card, .benefit-card, .guide-card, .pillar { padding: 20px !important; }

    .whatsapp-float { bottom: 16px; right: 14px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
    .whatsapp-float .wa-tooltip { display: none; }
}

/* ========== SMALL PHONES ========== */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .logo span { font-size: 14px; max-width: 110px; }
    .page-header h1, .hero h1 { font-size: 22px !important; }
    .section-title { font-size: 20px !important; }
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
    .stat-card .num { font-size: 24px !important; }
    .btn { width: 100%; }
    .cta-box .btn, .hero-cert .btn { display: block; width: 100%; margin: 8px 0 !important; }
    footer { padding-bottom: 88px; }
}

/* Landscape phones */
@media (max-width: 900px) and (orientation: landscape) {
    .page-header { padding: 80px 0 40px !important; }
    .nav-mobile-panel { padding-top: 64px; }
}


/* View button — exact same shape as Download (circle + text pill), no animation */
.view-label {
  background-color: transparent;
  border: 2px solid rgb(91, 91, 240);
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  width: 128px;
  height: 42px;
  cursor: pointer;
  padding: 4px;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  text-decoration: none !important;
  user-select: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.view-label:hover {
  background-color: rgba(91, 91, 240, 0.06);
  text-decoration: none !important;
}
.view-label .view-circle {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background-color: rgb(91, 91, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.view-label .view-circle .view-icon {
  color: #fff;
  width: 20px;
  height: 20px;
}
.view-label .view-title {
  font-size: 13px;
  color: rgb(91, 91, 240);
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: center;
  line-height: 1;
  pointer-events: none;
  position: static;
  transform: none;
}

/* Uiverse download button (nazar-gavrylyk) — scoped, compact size */
.dl-label {
  background-color: transparent;
  border: 2px solid rgb(91, 91, 240);
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  width: 128px;
  height: 42px;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 4px;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  user-select: none;
}
.dl-label::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background-color: #fff;
  width: 6px; height: 6px;
  transition: all 0.4s ease;
  border-radius: 100%;
  margin: auto;
  opacity: 0;
  visibility: hidden;
}
.dl-label .dl-input { display: none; }
.dl-label .dl-title {
  font-size: 13px;
  color: rgb(91, 91, 240);
  font-weight: 600;
  transition: all 0.4s ease;
  flex: 1;
  text-align: center;
  line-height: 1;
  margin: 0;
  position: static;
  transform: none;
}
.dl-label .dl-title:last-child {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  color: rgb(35, 174, 35);
  pointer-events: none;
}
.dl-label .dl-circle {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background-color: rgb(91, 91, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  overflow: hidden;
  flex-shrink: 0;
}
.dl-label .dl-circle .dl-icon {
  color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}
.dl-label .dl-circle .dl-square {
  aspect-ratio: 1;
  width: 12px;
  border-radius: 2px;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}
.dl-label .dl-circle::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  background-color: #3333a8;
  width: 100%;
  height: 0;
  transition: all 0.4s ease;
}
.dl-label:has(.dl-input:checked) {
  width: 42px;
  animation: dl-installed 0.4s ease 3.5s forwards;
}
.dl-label:has(.dl-input:checked)::before {
  animation: dl-rotate 3s ease-in-out 0.4s forwards;
}
.dl-label .dl-input:checked + .dl-circle {
  animation: dl-pulse 1s forwards, dl-circleDelete 0.2s ease 3.5s forwards;
  rotate: 180deg;
}
.dl-label .dl-input:checked + .dl-circle::before {
  animation: dl-installing 3s ease-in-out forwards;
}
.dl-label .dl-input:checked + .dl-circle .dl-icon {
  opacity: 0;
  visibility: hidden;
}
.dl-label .dl-input:checked ~ .dl-circle .dl-square,
.dl-label .dl-input:checked + .dl-circle .dl-square {
  opacity: 1;
  visibility: visible;
}
.dl-label .dl-input:checked ~ .dl-title {
  opacity: 0;
  visibility: hidden;
}
.dl-label .dl-input:checked ~ .dl-title:last-child {
  animation: dl-showInstalledMessage 0.4s ease 3.5s forwards;
}
@keyframes dl-pulse {
  0% { scale: 0.95; box-shadow: 0 0 0 0 rgba(91, 91, 240, 0.7); }
  70% { scale: 1; box-shadow: 0 0 0 12px rgba(91, 91, 240, 0); }
  100% { scale: 0.95; box-shadow: 0 0 0 0 rgba(91, 91, 240, 0); }
}
@keyframes dl-installing {
  from { height: 0; }
  to { height: 100%; }
}
@keyframes dl-rotate {
  0% {
    transform: rotate(-90deg) translate(20px) rotate(0);
    opacity: 1; visibility: visible;
  }
  99% {
    transform: rotate(270deg) translate(20px) rotate(270deg);
    opacity: 1; visibility: visible;
  }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes dl-installed {
  100% {
    width: 120px;
    border-color: rgb(35, 174, 35);
  }
}
@keyframes dl-circleDelete {
  100% { opacity: 0; visibility: hidden; }
}
@keyframes dl-showInstalledMessage {
  100% {
    opacity: 1;
    visibility: visible;
    right: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dl-label, .dl-label * { animation: none !important; transition: none !important; }
}
