/* =============================================
   SHARAF BANK — Main Stylesheet
   Brand Colors from Logo:
   --blue:   #2196C4  (D-arc & bars)
   --orange: #F47C2C  (swoosh flame)
   --teal:   #1A6B8A  (dark accent)
   ============================================= */

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

:root {
  --blue:        #2196C4;
  --blue-dark:   #1A6B8A;
  --blue-light:  #4DB8E8;
  --blue-pale:   #E8F5FC;
  --orange:      #F47C2C;
  --orange-dark: #D4621A;
  --orange-light:#F9A06A;
  --orange-pale: #FEF0E6;
  --white:       #ffffff;
  --off-white:   #F7FBFD;
  --gray-50:     #F4F7F9;
  --gray-100:    #E4EDF2;
  --gray-300:    #9BB5C4;
  --gray-600:    #4A6B7A;
  --gray-900:    #0F2D3A;
  --shadow-sm:   0 2px 8px rgba(33,150,196,0.08);
  --shadow-md:   0 6px 24px rgba(33,150,196,0.12);
  --shadow-lg:   0 16px 48px rgba(33,150,196,0.18);
  --radius:      10px;
  --radius-lg:   18px;
  --trans:       0.25s ease;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 14px; padding: 11px 26px;
  border-radius: 6px; transition: var(--trans); letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(244,124,44,0.3);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(244,124,44,0.4); }
.btn-primary.btn-lg { padding: 15px 36px; font-size: 16px; border-radius: 8px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--blue); color: var(--blue);
  font-weight: 700; font-size: 14px; padding: 10px 26px;
  border-radius: 6px; transition: var(--trans);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: 8px; }

.btn-online {
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 12px; padding: 6px 16px;
  border-radius: 5px; transition: var(--trans);
}
.btn-online:hover { background: var(--orange-dark); }

/* ---- TOP BAR ---- */
.topbar {
  background: var(--blue-dark); color: rgba(255,255,255,0.78);
  font-size: 12.5px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,0.78); transition: var(--trans); }
.topbar a:hover { color: var(--orange-light); }
.sep { opacity: 0.3; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(33,150,196,0.10);
  border-bottom: 3px solid var(--orange);
}
.header-inner { display: flex; align-items: center; height: 76px; gap: 0; }

/* LOGO */
.logo { display: flex; align-items: center; gap: 0; margin-right: 36px; flex-shrink: 0; }
.logo img { height: 52px; width: auto; object-fit: contain; }
.logo-mark {
  width: 44px; height: 44px; background: var(--blue); color: var(--white);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--blue-dark); letter-spacing: -0.01em; display: none;
}

/* ---- MAIN NAV ---- */
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 13px; font-size: 13.5px;
  font-weight: 600; color: var(--gray-600); border-radius: 6px;
  transition: var(--trans); white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--blue); background: var(--blue-pale); }
.nav-forex { color: var(--orange) !important; font-weight: 700; }

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px; display: none;
  gap: 32px; min-width: 580px;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--orange);
  z-index: 999;
}
.nav-item:hover .mega-menu { display: flex; }
.mega-col h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.mega-col a {
  display: block; font-size: 13.5px; color: var(--gray-600);
  padding: 5px 0; transition: var(--trans);
}
.mega-col a:hover { color: var(--blue); padding-left: 5px; }
.mega-col { min-width: 130px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn-search {
  width: 38px; height: 38px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: var(--trans);
}
.btn-search:hover { background: var(--blue-pale); color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: var(--trans); }

/* Search Overlay */
.search-overlay {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--blue-dark); padding: 20px 0; z-index: 998;
}
.search-overlay.active { display: block; }
.search-overlay .container { position: relative; display: flex; flex-direction: column; gap: 12px; }
#search-input {
  width: 100%; padding: 14px 52px 14px 20px;
  border: 2px solid rgba(255,255,255,0.2); border-radius: 8px;
  background: rgba(255,255,255,0.1); color: white; font-size: 16px; outline: none;
}
#search-input::placeholder { color: rgba(255,255,255,0.5); }
#search-input:focus { border-color: var(--orange); }
.search-close { position: absolute; right: 24px; top: 12px; color: white; font-size: 20px; }
.search-suggestions { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 13px; }
.search-suggestions a {
  color: var(--orange-light); padding: 4px 12px;
  border: 1px solid rgba(244,124,44,0.4); border-radius: 20px; font-size: 13px; transition: var(--trans);
}
.search-suggestions a:hover { background: rgba(244,124,44,0.15); }

/* ---- HERO ---- */
.hero { position: relative; overflow: hidden; }
.hero-slides { position: relative; }
.hero-slide { display: none; min-height: 580px; position: relative; overflow: hidden; align-items: center; }
.hero-slide.active { display: flex; }
.hero-content { position: relative; z-index: 2; padding: 90px 0; max-width: 620px; }
.hero-badge {
  display: inline-block;
  background: rgba(244,124,44,0.18); color: var(--orange-light);
  border: 1px solid rgba(244,124,44,0.45);
  padding: 5px 16px; border-radius: 20px; font-size: 13px;
  font-weight: 700; letter-spacing: 0.04em; margin-bottom: 22px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px); color: white;
  line-height: 1.15; margin-bottom: 18px; font-weight: 700;
}
.hero-content h1 span { color: var(--orange-light); display: block; }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 18px; margin-bottom: 34px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,0.6); color: white; }
.hero-cta .btn-outline:hover { background: white; color: var(--blue-dark); border-color: white; }

/* Hero decorative shapes */
.hero-shape {
  position: absolute; right: -80px; top: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.hero-shape2 {
  position: absolute; right: 160px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(244,124,44,0.08); pointer-events: none;
}

.hero-controls {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: var(--trans); }
.hero-dot.active { background: var(--orange); transform: scale(1.35); }

/* ---- QUICK ACTIONS ---- */
.quick-actions { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.qa-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid var(--gray-100); }
.qa-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px; border-right: 1px solid var(--gray-100);
  border-bottom: 3px solid transparent; transition: var(--trans);
  color: var(--gray-600); font-size: 13px; font-weight: 600; text-align: center;
}
.qa-item:hover { border-bottom-color: var(--orange); color: var(--blue-dark); background: var(--blue-pale); }
.qa-icon {
  width: 46px; height: 46px; background: var(--gray-50); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; transition: var(--trans);
}
.qa-icon svg { width: 22px; height: 22px; color: var(--blue); }
.qa-item:hover .qa-icon { background: var(--blue); }
.qa-item:hover .qa-icon svg { color: white; }

/* ---- SECTION COMMONS ---- */
.section-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px); color: var(--blue-dark); font-weight: 700;
}
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; }

/* ---- GOALS ---- */
.goals-section { padding: 84px 0; background: var(--off-white); }
.goals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.goal-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--trans); border: 1.5px solid var(--gray-100);
}
.goal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.goal-img { height: 150px; display: flex; align-items: center; justify-content: center; }
.goal-img svg { width: 64px; height: 64px; }
.goal-body { padding: 24px; }
.goal-body h3 { font-family: var(--font-display); font-size: 18px; color: var(--blue-dark); margin-bottom: 10px; font-weight: 700; }
.goal-body p { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.65; }
.goal-link { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--blue); transition: var(--trans); }
.goal-link svg { width: 16px; height: 16px; transition: var(--trans); }
.goal-card:hover .goal-link { color: var(--orange); }
.goal-card:hover .goal-link svg { transform: translateX(4px); }

/* ---- PRODUCTS ---- */
.products-section { padding: 84px 0; background: var(--white); }
.product-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.tab-btn {
  padding: 9px 22px; border-radius: 24px; font-size: 14px; font-weight: 600;
  color: var(--gray-600); border: 2px solid var(--gray-100); transition: var(--trans);
}
.tab-btn.active, .tab-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.product-card {
  background: var(--white); border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 28px 22px; transition: var(--trans);
}
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card.hidden { display: none; }
.product-icon { font-size: 32px; margin-bottom: 16px; }
.product-card h3 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.product-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.product-tags span {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: var(--blue-pale); color: var(--blue-dark);
}
.product-link { font-size: 13px; font-weight: 700; color: var(--blue); transition: var(--trans); }
.product-link:hover { color: var(--orange); }
.products-cta { text-align: center; }

/* ---- FOREX STRIP ---- */
.forex-strip { background: var(--blue-dark); padding: 16px 0; overflow: hidden; }
.forex-strip .container { display: flex; align-items: center; gap: 24px; }
.forex-label { color: var(--orange-light); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.forex-ticker { display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.forex-ticker::-webkit-scrollbar { display: none; }
.forex-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pair { color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 600; }
.rate { color: white; font-weight: 700; font-size: 14px; }
.change { font-size: 12px; font-weight: 600; }
.change.up { color: #6EE7B7; }
.change.down { color: #FCA5A5; }
.forex-more { color: var(--orange-light); font-size: 13px; font-weight: 700; white-space: nowrap; transition: var(--trans); }
.forex-more:hover { color: var(--orange); }

/* ---- CALCULATORS ---- */
.calculators-section { padding: 84px 0; background: var(--gray-50); }
.calc-tabs-wrapper {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; border: 1.5px solid var(--gray-100);
}
.calc-tabs { display: flex; border-bottom: 1px solid var(--gray-100); background: var(--off-white); }
.calc-tab {
  flex: 1; padding: 16px; font-size: 14px; font-weight: 600;
  color: var(--gray-600); border-bottom: 3px solid transparent; transition: var(--trans); text-align: center;
}
.calc-tab.active, .calc-tab:hover { color: var(--blue-dark); border-bottom-color: var(--orange); background: var(--white); }
.calc-panel { display: none; grid-template-columns: 1fr 1fr; gap: 0; padding: 44px; align-items: start; }
.calc-panel.active { display: grid; }
.calc-form { display: flex; flex-direction: column; gap: 18px; padding-right: 44px; border-right: 1px solid var(--gray-100); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--gray-600); }
.form-row input, .form-row select {
  padding: 12px 16px; border: 1.5px solid var(--gray-100);
  border-radius: 8px; font-size: 15px; font-family: var(--font-body);
  outline: none; transition: var(--trans); background: var(--white);
}
.form-row input:focus, .form-row select:focus { border-color: var(--blue); }
.calc-btn { width: 100%; justify-content: center; margin-top: 8px; }
.calc-result { padding-left: 44px; display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.result-item { display: flex; flex-direction: column; gap: 4px; }
.result-item span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-300); }
.result-item strong { font-size: 28px; color: var(--blue-dark); font-family: var(--font-display); }

/* ---- DIGITAL PROMO ---- */
.digital-promo { padding: 84px 0; background: var(--white); }
.digital-inner { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; }
.digital-text .section-eyebrow { text-align: left; }
.digital-text h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: var(--blue-dark); margin-bottom: 16px; font-weight: 700; }
.digital-text > p { font-size: 16px; color: var(--gray-600); margin-bottom: 24px; line-height: 1.75; }
.digital-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 32px; }
.digital-features li { font-size: 14px; color: var(--gray-600); }
.app-store-btns { display: flex; gap: 12px; }
.app-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-dark); color: white; padding: 12px 22px;
  border-radius: 8px; font-size: 14px; font-weight: 700; transition: var(--trans);
}
.app-btn:hover { background: var(--blue); }

/* Phone mockup */
.digital-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 268px; background: var(--blue-dark);
  border-radius: 40px; padding: 14px;
  box-shadow: 0 32px 80px rgba(26,107,138,0.3), 0 0 0 1px rgba(255,255,255,0.07);
}
.phone-screen { background: #EFF7FC; border-radius: 30px; padding: 20px 16px; overflow: hidden; }
.phone-header { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--blue-dark); margin-bottom: 20px; }
.phone-time { color: var(--gray-600); }
.phone-balance { background: var(--blue-dark); border-radius: 16px; padding: 20px; margin-bottom: 16px; color: white; }
.phone-balance p { font-size: 11px; opacity: 0.65; margin-bottom: 4px; }
.phone-balance h3 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.bal-change { font-size: 11px; color: #6EE7B7; }
.phone-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.pa-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: var(--blue-dark); font-weight: 700; }
.pa-icon {
  width: 40px; height: 40px; background: var(--white); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--blue); box-shadow: var(--shadow-sm);
}
.tx-label { font-size: 11px; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.tx-item { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: 12px; }
.tx-neg { color: #DC2626; font-weight: 700; }
.tx-pos { color: #16A34A; font-weight: 700; }

/* ---- NEWS ---- */
.news-section { padding: 84px 0; background: var(--off-white); }
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--gray-100); transition: var(--trans); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
}
.news-card h3 { font-size: 15px; font-weight: 700; color: var(--blue-dark); line-height: 1.45; margin-bottom: 10px; }
.news-card-featured h3 { font-family: var(--font-display); font-size: 22px; }
.news-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.news-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-300); }
.news-meta a { color: var(--blue); font-weight: 700; transition: var(--trans); }
.news-meta a:hover { color: var(--orange); }

/* ---- SECURITY STRIP ---- */
.security-strip { background: var(--blue-dark); padding: 44px 0; }
.security-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.sec-item { display: flex; align-items: flex-start; gap: 16px; }
.sec-item svg { width: 44px; height: 44px; flex-shrink: 0; }
.sec-item strong { display: block; color: white; font-size: 15px; margin-bottom: 4px; font-weight: 700; }
.sec-item p { color: rgba(255,255,255,0.55); font-size: 13px; }

/* ---- FOOTER ---- */
.site-footer { background: #0C2636; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .logo-text-f { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: white; }
.footer-brand > p { color: rgba(255,255,255,0.5); font-size: 13.5px; line-height: 1.75; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; margin-bottom: 24px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: var(--trans);
}
.footer-social a:hover { background: var(--orange); color: white; }
.footer-social svg { width: 16px; height: 16px; }
.footer-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.app-badge { padding: 7px 18px; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; font-size: 12px; color: rgba(255,255,255,0.65); transition: var(--trans); font-weight: 600; }
.app-badge:hover { border-color: var(--orange); color: var(--orange-light); }
.footer-col h4 { font-size: 13px; font-weight: 800; color: white; letter-spacing: 0.04em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.5); transition: var(--trans); }
.footer-col a:hover { color: var(--orange-light); padding-left: 4px; }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12.5px; color: rgba(255,255,255,0.35); transition: var(--trans); }
.footer-legal a:hover { color: var(--orange-light); }
.footer-reg { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ---- FLOATING TOOLS ---- */
.floating-tools { position: fixed; bottom: 88px; right: 24px; z-index: 900; }
.ft-toggle { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.ft-toggle:hover { background: var(--blue-dark); transform: rotate(90deg); }
.ft-panel {
  display: none; flex-direction: column; gap: 6px;
  position: absolute; bottom: 64px; right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 12px; min-width: 190px;
  border: 1.5px solid var(--gray-100); border-top: 3px solid var(--orange);
}
.ft-panel.active { display: flex; }
.ft-item { display: block; padding: 10px 14px; font-size: 13.5px; color: var(--gray-600); border-radius: 6px; transition: var(--trans); font-weight: 600; }
.ft-item:hover { background: var(--blue-pale); color: var(--blue-dark); }

/* ---- BACK TO TOP ---- */
.back-top {
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--orange); color: white; font-size: 18px;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 900; transition: var(--trans); font-weight: 700;
}
.back-top.visible { display: flex; }
.back-top:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .digital-inner { grid-template-columns: 1fr; }
  .digital-visual { display: none; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .security-inner { grid-template-columns: repeat(2, 1fr); }
  .calc-panel.active { grid-template-columns: 1fr; }
  .calc-form { padding-right: 0; border-right: none; border-bottom: 1px solid var(--gray-100); padding-bottom: 32px; }
  .calc-result { padding-left: 0; padding-top: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 60px 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; justify-content: center; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .goals-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .security-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc-tabs { flex-wrap: wrap; }
  .section-header-row { flex-direction: column; gap: 16px; }
}
