:root {
  --primary: #002751;
  --primary-hover: #003c79;
  --accent: #0381b7;
  --accent-soft: #e8f2f8;
  --success: #198754;
  --success-hover: #157347;
  --bg-soft: #f4f6f8;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #e6e9ee;
  --shadow-sm: 0 2px 6px rgba(0, 39, 81, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 39, 81, 0.10);
  --radius: 12px;
  --nav-height: 68px;
}

@media (min-width: 768px) {
  :root { --nav-height: 84px; }
}
@media (min-width: 1200px) {
  :root { --nav-height: 96px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--accent); }
a:hover { color: var(--primary); }

.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
}

.section-soft { background: var(--bg-soft); }
.section-accent { background: var(--accent-soft); }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-title { font-size: 2rem; margin-bottom: 48px; }
}

.btn-primary-cta {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background .15s, transform .15s;
}
.btn-primary-cta:hover,
.btn-primary-cta:focus {
  background: var(--success-hover);
  border-color: var(--success-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ========== NAVBAR ========== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  min-height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1030;
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

@media (min-width: 768px) {
  .site-nav { padding: 18px 0; }
}
@media (min-width: 1200px) {
  .site-nav { padding: 22px 0; }
}

.site-nav .container {
  height: auto;
}

.site-nav .navbar-brand {
  padding: 0;
  margin: 0;
}

.site-nav .navbar-brand img {
  height: 44px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .site-nav .navbar-brand img { height: 52px; }
}
@media (min-width: 1200px) {
  .site-nav .navbar-brand img { height: 56px; }
}

.nav-slogan {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav-slogan strong { color: var(--primary); }

.nav-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.nav-contacts .email a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-contacts .email a:hover { color: var(--accent); }

.site-nav .btn-primary-cta {
  white-space: nowrap;
}

/* Below xl: hide slogan and email — keep only logo + button */
@media (max-width: 1199.98px) {
  .nav-slogan { display: none; }
  .nav-contacts .email { display: none; }
}

/* Mobile: compact icon-only button */
@media (max-width: 575.98px) {
  .site-nav .navbar-brand img { height: 40px; }
  .site-nav .btn-primary-cta .btn-label { display: none; }
  .site-nav .btn-primary-cta i { margin: 0 !important; }
  .site-nav .btn-primary-cta {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 420px;
  padding: 64px 0;
  background-image: linear-gradient(rgba(0, 39, 81, 0.72), rgba(0, 39, 81, 0.78)), url('../img/banner.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero h1 { color: #fff; font-size: 1.75rem; line-height: 1.25; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 28px; }

@media (min-width: 768px) {
  .hero { min-height: 520px; padding: 96px 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero p.lead { font-size: 1.2rem; }
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(2px);
  padding: 28px;
  border-radius: var(--radius);
}

/* ========== BENEFITS STRIP ========== */
.strip-item {
  text-align: center;
  padding: 20px 12px;
  height: 100%;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}
.strip-item strong { display: block; margin-bottom: 4px; font-weight: 700; }

/* ========== UNI-CARD ========== */
.uni-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.uni-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.uni-card__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uni-card__icon img { max-width: 100%; max-height: 100%; }
.uni-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.3;
}
.uni-card__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

/* ========== CTA SECTION ========== */
.cta-block {
  text-align: center;
}
.cta-block h2 {
  font-size: 1.4rem;
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 700;
}
@media (min-width: 768px) {
  .cta-block h2 { font-size: 1.75rem; }
}

/* ========== RESULT SECTION ========== */
.result-list { padding-left: 0; list-style: none; }
.result-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--text);
  line-height: 1.5;
}
.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23198754'><path d='M7.5 13.5l-3-3 1.4-1.4 1.6 1.6 4.6-4.6 1.4 1.4z'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.result-block .subheading {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin: 24px 0 12px;
  font-size: 1.1rem;
}
.result-block .subheading:first-child { margin-top: 0; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 24px;
  margin-top: 0;
}
.site-footer h5 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer img { filter: brightness(0) invert(1); height: 48px; margin-bottom: 12px; }
.site-footer .copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 24px;
}

/* ========== FLOATING CALL BUTTON ========== */
.floating-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  z-index: 1020;
  text-decoration: none;
  transition: transform .2s, background .2s;
  animation: pulse 2s infinite;
}
.floating-call:hover {
  background: var(--success-hover);
  transform: scale(1.05);
  color: #fff !important;
}
@keyframes pulse {
  0% { box-shadow: 0 6px 18px rgba(0,0,0,0.2), 0 0 0 0 rgba(25, 135, 84, 0.5); }
  70% { box-shadow: 0 6px 18px rgba(0,0,0,0.2), 0 0 0 16px rgba(25, 135, 84, 0); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.2), 0 0 0 0 rgba(25, 135, 84, 0); }
}

@media (min-width: 768px) {
  .floating-call { right: 24px; bottom: 24px; width: 68px; height: 68px; font-size: 1.8rem; }
}

/* ========== MODAL (iOS sheet on mobile, centered on desktop) ========== */

/* Desktop (≥ 992px): centered modal with rounded corners */
@media (min-width: 992px) {
  .contact-sheet .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 39, 81, 0.25);
  }
  .contact-sheet .modal-header {
    border: none;
    padding: 24px 24px 8px;
  }
  .contact-sheet .modal-body {
    padding: 8px 24px 28px;
  }
  .contact-sheet .btn-close {
    background-color: #f2f4f7;
    opacity: 1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    background-size: 12px;
  }
  .contact-sheet .btn-close:hover {
    background-color: #e5e8ee;
  }
}

/* Mobile (< 992px): iOS-style bottom sheet */
@media (max-width: 991.98px) {
  .contact-sheet {
    --bs-modal-margin: 0;
    --bs-modal-border-radius: 0;
  }
  .contact-sheet .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    height: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .contact-sheet.show .modal-dialog {
    transform: translateY(0);
  }
  .contact-sheet.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(100%);
  }
  .contact-sheet.fade.show .modal-dialog {
    transform: translateY(0);
  }
  .contact-sheet .modal-content {
    border: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.24);
    background: #fff;
    min-height: 240px;
    position: relative;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
  .contact-sheet.dragging .modal-content {
    touch-action: none;
  }
  /* Drag handle */
  .contact-sheet .modal-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #c7c7cc;
    border-radius: 2px;
  }
  .contact-sheet .modal-header {
    border: none;
    padding: 24px 20px 8px;
    position: relative;
    justify-content: center;
  }
  .contact-sheet .modal-title {
    text-align: center;
    margin: 0;
    width: 100%;
  }
  .contact-sheet .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #f2f2f7;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    opacity: 1;
    background-size: 12px;
  }
  .contact-sheet .btn-close:hover {
    background-color: #e5e5ea;
  }
  .contact-sheet .modal-body {
    padding: 12px 20px 28px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  /* Re-enable text selection in inputs */
  .contact-sheet input,
  .contact-sheet label {
    -webkit-user-select: auto;
    user-select: auto;
  }
}

/* ========== MESSENGERS (WhatsApp / Telegram) ========== */

:root {
  --wa-color: #25d366;
  --wa-hover: #1fb758;
  --tg-color: #229ed9;
  --tg-hover: #1b86b8;
}

/* Large messenger buttons (used in modal) */
.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.messenger-btn:hover,
.messenger-btn:focus {
  color: #fff;
  transform: translateY(-1px);
}
.messenger-btn i { font-size: 1.25rem; }
.messenger-btn.whatsapp { background: var(--wa-color); }
.messenger-btn.whatsapp:hover { background: var(--wa-hover); }
.messenger-btn.telegram { background: var(--tg-color); }
.messenger-btn.telegram:hover { background: var(--tg-hover); }
.messenger-btn.email { background: var(--primary); }
.messenger-btn.email:hover { background: var(--primary-hover); }

.messengers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.messenger-btn span { white-space: nowrap; }
@media (max-width: 460px) {
  .messengers-grid { grid-template-columns: 1fr; }
}

.messenger-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 14px 0 18px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.messenger-divider::before,
.messenger-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Round messenger icons (used in navbar) */
.nav-messengers {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-messenger-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-messenger-icon:hover,
.nav-messenger-icon:focus {
  transform: translateY(-2px);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nav-messenger-icon.whatsapp { background: var(--wa-color); }
.nav-messenger-icon.whatsapp:hover { background: var(--wa-hover); }
.nav-messenger-icon.telegram { background: var(--tg-color); }
.nav-messenger-icon.telegram:hover { background: var(--tg-hover); }

/* Nav messengers visible only on tablet+ (576px+) to avoid cramping mobile */
@media (max-width: 575.98px) {
  .nav-messengers { display: none; }
}

/* Footer messenger links */
.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.footer-messengers a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.footer-messengers a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}
.footer-messengers a i { font-size: 1rem; }

/* ========== FORM ========== */
.modal-title-cta {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
}
.form-text-subtle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.recall-form .form-control {
  padding: 12px 14px;
  border-radius: 8px;
  border-color: var(--border);
}
.recall-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(3,129,183,0.15);
}
.recall-form label.privacy {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.recall-form label.privacy a { color: var(--accent); text-decoration: underline; }
.recall-form button[type=submit] {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.recall-form .honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-feedback {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.form-feedback.error { background: #fdecee; color: #842029; border: 1px solid #f5c2c7; }

.form-feedback-title {
  margin-bottom: 10px;
  line-height: 1.4;
}
.form-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-feedback .fb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: #fff !important;
  transition: filter 0.15s, transform 0.15s;
}
.form-feedback .fb-link:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff !important; }
.form-feedback .fb-link i { font-size: 1rem; }
.form-feedback .fb-wa { background: var(--wa-color); }
.form-feedback .fb-tg { background: var(--tg-color); }
.form-feedback .fb-email { background: var(--primary); }

/* ========== SUBSCRIBE SECTION ========== */
.subscribe-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .subscribe-card { padding: 40px 40px; }
}
.subscribe-card .section-title {
  margin-bottom: 12px;
}
.subscribe-lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.5;
}
.subscribe-form .form-control {
  padding: 12px 14px;
  border-radius: 8px;
  border-color: var(--border);
}
.subscribe-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(3,129,183,0.15);
}
.subscribe-form label.privacy {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.subscribe-form label.privacy a {
  color: var(--accent);
  text-decoration: underline;
}
.subscribe-form button[type=submit] {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.subscribe-form .honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* No horizontal scroll on mobile */
html, body { overflow-x: hidden; }
