/* ==========================================================================
   Mehnat Audit Lab — custom styles
   ========================================================================== */

:root {
  --primary: #0b2a4a;
  --primary-dark: #071a30;
  --primary-light: #14416d;
  --accent: #ff6b2c;
  --accent-dark: #e2551a;
  --safety-green: #1fae6e;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #16233a;
  --text-muted: #5c6b85;
  --border: #e4e9f1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(11, 42, 74, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 42, 74, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 42, 74, 0.16);
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }

.section-pad { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
}

.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}
.section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.section-eyebrow-light { color: #ffd9c2; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-text { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons */
.btn { border-radius: 999px; font-family: var(--font-heading); font-weight: 700; padding: 0.75rem 1.75rem; transition: all var(--transition); border: none; }
.btn-lg { padding: 0.95rem 2.1rem; font-size: 1rem; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 107, 44, 0.35);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(255, 107, 44, 0.45); color: #fff; }

.btn-pulse { animation: pulse-btn 1.6s ease-in-out infinite; }
.btn-pulse:hover { animation: none; }
@keyframes pulse-btn {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.7), 0 10px 26px rgba(255, 107, 44, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 107, 44, 0), 0 10px 30px rgba(255, 107, 44, 0.55); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 44, 0), 0 10px 26px rgba(255, 107, 44, 0.35); }
}

.btn-primary-solid {
  background: var(--primary);
  color: #fff;
}
.btn-primary-solid:hover { background: var(--primary-light); color: #fff; transform: translateY(-3px); }

.btn-primary-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.6rem;
}
.btn-primary-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.btn-outline-light { border: 2px solid rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; }
.topbar { background: var(--primary-dark); color: #cdd9ec; font-size: 0.85rem; padding: 8px 0; }
.topbar a { color: #cdd9ec; }
.topbar a:hover { color: var(--accent); }
.topbar-social a { margin-left: 14px; }

.main-nav { background: #fff; box-shadow: 0 2px 20px rgba(11,42,74,0.06); padding: 14px 0; transition: padding var(--transition); }
.site-header.is-scrolled .main-nav { padding: 8px 0; box-shadow: 0 6px 24px rgba(11,42,74,0.10); }

.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 44px; width: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.brand-text { font-family: var(--font-heading); font-weight: 800; color: var(--primary); font-size: 1.15rem; line-height: 1.1; }

.main-menu { gap: 6px; }
.main-menu .nav-link { font-family: var(--font-heading); font-weight: 600; color: var(--text); padding: 10px 16px !important; border-radius: 999px; transition: all var(--transition); position: relative; white-space: nowrap; }
.main-menu .nav-link:hover { background: var(--bg-alt); color: var(--primary); }
.main-menu .nav-link.active { background: var(--primary); color: #fff; }

.nav-phone { font-family: var(--font-heading); font-weight: 700; color: var(--primary); white-space: nowrap; }
.nav-phone i { color: var(--accent); margin-right: 6px; }

.lang-switcher-toggle {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--primary); background: var(--bg-alt); border-radius: 999px; padding: 8px 14px;
}
.lang-switcher-toggle:hover, .lang-switcher-toggle:focus { color: var(--primary); background: var(--bg-alt); }
.lang-switcher-form { margin: 0; }
.lang-switcher-form .dropdown-item { cursor: pointer; }
.lang-switcher-form .dropdown-item.active, .lang-switcher-form .dropdown-item:active { background: var(--primary); color: #fff; }

/* Honeypot-поле для форм — скрыто от людей, но видно ботам, заполняющим все поля подряд */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.navbar-toggler { border: none; padding: 6px; }
.navbar-toggler:focus { box-shadow: none; }
.burger-line { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: var(--transition); }

.mobile-call-fab {
  position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 12px 28px rgba(255,107,44,0.45); z-index: 1040;
  animation: pulse-fab 2.4s infinite;
}
@keyframes pulse-fab {
  0% { box-shadow: 0 0 0 0 rgba(255,107,44,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255,107,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,44,0); }
}

/* Toasts */
.toast-stack { position: fixed; top: 90px; right: 20px; z-index: 1080; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-stack .alert { border-radius: var(--radius-sm); border: none; box-shadow: var(--shadow-md); }

/* Hero */
.hero-section { position: relative; }
.hero-swiper { height: 88vh; min-height: 560px; }
.hero-slide { height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-content { max-width: 680px; color: #fff; }
.hero-eyebrow { display: inline-block; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-size: 0.85rem; }
.hero-content h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 18px; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--accent); }

.page-hero { background: linear-gradient(120deg, var(--primary), var(--primary-light)); padding: 120px 0 70px; text-align: center; }
.page-hero .hero-eyebrow { color: var(--accent); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* Counters */
.counters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.counters-grid-vertical { grid-template-columns: 1fr; }
.counter-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 28px 20px; text-align: center;
  border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition);
}
.counter-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.counter-number { font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; color: var(--primary); line-height: 1; }
.counter-number::after { content: "+"; color: var(--accent); }
.counter-label { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

/* Service cards */
.service-card {
  box-shadow: var(--shadow-sm);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px;
  height: 100%; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card-icon {
  width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
}
.service-card-image { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; height: 160px; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.service-card:hover .service-card-image img { transform: scale(1.08); }
.service-card-category { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card h3 a:hover { color: var(--accent); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.service-card-link { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.service-card-link i { transition: transform var(--transition); }
.service-card:hover .service-card-link i { transform: translateX(4px); }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.service-card-price { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.9rem; }

.service-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-family: var(--font-heading);
  font-weight: 600; padding: 10px 20px; border-radius: 999px; transition: all var(--transition); cursor: pointer; font-size: 0.9rem;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.service-item.hidden-item { display: none; }

@media (max-width: 768px) {
  .service-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .service-filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; white-space: nowrap; }
}

/* Why us */
.whyus-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; height: 100%; text-align: center; transition: all var(--transition); }
.whyus-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); border-color: transparent; }
.whyus-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,107,44,0.14), rgba(11,42,74,0.08)); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.whyus-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.whyus-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Employee cards */
.employee-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--transition); height: 100%; }
.employee-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.employee-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); }
.employee-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.employee-card:hover .employee-photo img { transform: scale(1.08); }
.employee-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,42,74,0.85), rgba(11,42,74,0));
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; opacity: 0; transition: opacity var(--transition);
}
.employee-card:hover .employee-overlay { opacity: 1; }
.employee-overlay span { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; }
.employee-info { padding: 18px 20px; text-align: center; }
.employee-info h4 { font-size: 1.02rem; margin-bottom: 4px; }
.employee-info h4 a:hover { color: var(--accent); }
.employee-info span { color: var(--text-muted); font-size: 0.85rem; }

.employee-detail-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.employee-detail-position { display: inline-block; color: var(--accent); font-family: var(--font-heading); font-weight: 700; margin-bottom: 24px; }
.employee-detail-block { margin-bottom: 22px; }
.employee-detail-block h5 { font-size: 1rem; margin-bottom: 8px; }
.employee-detail-block p { color: var(--text-muted); }
.employee-detail-contacts { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.employee-detail-contacts a { font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
.employee-detail-contacts a:hover { color: var(--accent); }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--text-muted); margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }

/* Documents */
.documents-cta { background: linear-gradient(120deg, var(--primary), var(--primary-light)); border-radius: 28px; padding: 56px; color: #fff; }
.documents-cta h2 { color: #fff; margin-bottom: 12px; }
.documents-cta p { color: rgba(255,255,255,0.8); margin: 0; }
@media (max-width: 768px) { .documents-cta { padding: 36px 24px; border-radius: 20px; } }

.document-download-btn {
  display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm); padding: 16px 20px; color: #fff; transition: all var(--transition);
}
.document-download-btn:hover { background: rgba(255,255,255,0.16); transform: translateX(6px); color: #fff; }
.doc-icon { font-size: 1.6rem; color: var(--accent); }
.doc-text { display: flex; flex-direction: column; }
.doc-text small { color: rgba(255,255,255,0.65); }

.document-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; text-align: center; height: 100%; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.document-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.document-card-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 18px; }
.document-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.document-card p { color: var(--text-muted); font-size: 0.92rem; }
.document-card-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Contacts */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; height: 100%; transition: all var(--transition); }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-alt); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 16px; }
.contact-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); margin: 0; }

.contact-info-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.contact-info-list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); margin-bottom: 14px; }
.contact-info-list i { color: var(--accent); width: 20px; }
.contact-info-list a { color: var(--text); font-weight: 600; }
.contact-info-list a:hover { color: var(--accent); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); height: 340px; }
.map-embed-tall { height: 100%; min-height: 420px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-form-card { background: var(--bg-alt); border-radius: var(--radius); padding: 40px; height: 100%; }
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card .form-control { border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 12px 16px; font-size: 0.95rem; }
.contact-form-card .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,44,0.15); }

/* CTA */
.cta-box { background: linear-gradient(120deg, var(--primary), var(--primary-light)); border-radius: 28px; padding: 60px; text-align: center; color: #fff; }
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
@media (max-width: 768px) { .cta-box { padding: 40px 24px; } }

/* Service detail */
.service-detail-image { border-radius: var(--radius); overflow: hidden; margin: 24px 0; box-shadow: var(--shadow-md); }
.related-service-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 20px; text-align: center; transition: all var(--transition); }
.related-service-card:hover { background: var(--primary); color: #fff; transform: translateY(-4px); }
.related-service-card i { font-size: 1.4rem; color: var(--accent); }

.service-order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); position: sticky; top: 110px; }
.service-order-price { margin-bottom: 16px; }
.price-label { display: block; font-size: 0.85rem; color: var(--text-muted); }
.price-value { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--primary); }
.service-order-card .form-control { border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 12px 16px; }
.service-order-card .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,44,0.15); }
.service-order-contacts { text-align: center; margin-top: 16px; }
.service-order-contacts a { font-family: var(--font-heading); font-weight: 700; color: var(--primary); }

/* Rich text content */
.richtext-content { color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; }
.richtext-content p { margin-bottom: 1.2em; }
.richtext-content h1, .richtext-content h2, .richtext-content h3 { color: var(--primary); margin: 1.4em 0 0.6em; }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-heading); font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-tagline { font-size: 0.92rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-title { color: #fff; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-links i { margin-right: 8px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding: 22px 0; text-align: center; font-size: 0.85rem; }

/* Modal */
.modal-content { border-radius: var(--radius); border: none; }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--font-heading); font-weight: 800; color: var(--primary); }

/* Misc */
::selection { background: var(--accent); color: #fff; }

[data-aos] { transition-property: transform, opacity; }