@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Abel&family=Lato:wght@400;700&family=Open+Sans:ital,wght@0,300;0,400;1,300;1,400&family=Red+Hat+Display:wght@400;700&display=swap');

:root {
  --c-primary: #ffdb16;
  --c-accent: #ffdb16;
  --c-text: #000;
  --c-text-light: #656565;
  --c-text-muted: #a4a4a4;
  --c-bg: #fff;
  --c-border: #e4e4e4;
  --c-border-light: #ebebeb;
  --c-inactive: #e7e7e7;
  --c-inactive-dark: #d9d9d9;
  --c-shadow: rgba(0,0,0,0.15);
  --c-shadow-light: rgba(0,0,0,0.08);
  --c-shadow-inset: rgba(0,0,0,0.1);
  --font-main: 'Abel', sans-serif;
  --font-title: 'Open Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-card: 7.309px;
  --radius-btn: 5.634px;
  --radius-btn-lg: 6.886px;
  --radius-bar: 9.09px;
  --shadow-card: 4.545px 4.545px 22.725px 0px var(--c-shadow);
  --shadow-card-light: 4.545px 4.545px 22.725px 0px var(--c-shadow-light);
  --c-primary-hover: #3A3A3A;
  --c-primary-text: #223c2b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--c-bg); color: #222; overflow-x: hidden; max-width: 100vw; }
.site-wrapper { max-width: 1435px; margin: 0 auto; gap: 15px; display: grid; margin-top: 20px;}
@media (max-width: 768px) {
  .site-wrapper { padding-left: 15px; padding-right: 15px; }
}
a { text-decoration: none; color: inherit; }

/* HEADER */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 100px;
  background: #fff;
  box-shadow: 5px 5px 25px 0 rgba(0,0,0,0.12);
  border-radius: 5px;
  position: sticky; top: 0; z-index: 100;
  font-family: 'Gotham Pro', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 20px;
}
.header-logo { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.header-logo img { height: 52px; width: 52px; border-radius: 8px; object-fit: contain; }
.header-logo span { display: none; }
.header-nav { display: flex; align-items: center; gap: 40px; margin-left: 40px; }
.header-nav a {
  font-size: 16px; color: #3a3a3a; text-decoration: none;
  position: relative; padding-bottom: 4px; white-space: nowrap;
}
.header-nav a:hover { color: #1a1a1a; }
.header-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: #ffdb16;
}
.header-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-contacts {
  text-align: right; line-height: 1.5; font-size: 16px; color: #3a3a3a;
}
.header-lang {
  display: flex; align-items: center; gap: 6px;
  background: #f7f7f7; border: none; border-radius: 3px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.14);
  padding: 5px 12px; font-size: 13px; color: #3a3a3a;
  cursor: pointer; white-space: nowrap;
}
.header-lang img { height: 19px; width: 21px; object-fit: contain; border-radius: 2px; }
.header-lang .lang-arrow { width: 12px; height: 6px; margin-left: 2px; }
.header-toggle {
  width: 55px; height: 24px; border-radius: 12px;
  background: #ffe15a; border: none; position: relative;
  cursor: pointer; flex-shrink: 0;
}
.header-toggle::after {
  content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: left .2s;
}
.header-toggle.active::after { left: calc(100% - 22px); }

/* FOOTER */
.footer {
  background: #3a3a3a; color: #fff; border-radius: 5px;
  font-family: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; line-height: 1.6;
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
}
.footer-top {
  display: flex; gap: 30px; padding: 30px 33px 30px 33px;
}
.footer-brand {
  flex: 0 0 430px; display: flex; flex-direction: column; gap: 14px;
  padding-top: 49px; padding-right: 30px; max-width: 100%;
  border-right: 1px solid #fff;
}
.footer-brand-logo { display: flex; align-items: center; gap: 0; }
.footer-brand-logo img { height: 39px; width: auto; object-fit: contain; }
.footer-socials { display: flex; gap: 20px; margin-top: 5px; align-items: center; }
.footer-social {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; color: #fff; border-radius: 0;
  padding: 0; font-size: 14px; font-weight: 400;
  text-decoration: none; transition: opacity .2s;
  font-family: 'Lato', 'Open Sans', sans-serif;
}
.footer-social:hover { opacity: .85; }
.footer-social svg {
  width: 14px; height: 14px; flex-shrink: 0;
  background: #ffdb16; color: #3a3a3a;
  padding: 8px; box-sizing: content-box;
  border-radius: 6px;
}
.footer-brand-info {
  font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin-top: 6px;
}
.footer-columns {
  flex: 1; display: flex; gap: 10px; justify-content: space-between;
  padding-top: 0; padding-left: 40px;
}
.footer-col { min-width: 120px; }
.footer-col-title {
  font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 15px;
  padding-top: 0;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: #fff; text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: #ffdb16; }
.footer-col .indent { padding-left: 10px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 21px 64px; border-top: none;
  font-size: 14px; color: rgba(255,255,255,.7);
  margin: 0; position: relative;
}
.footer-bottom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: #fff; width: 95%; margin-left: auto; margin-right: auto;
}
.footer-bottom-left { display: flex; gap: 20px; }
.footer-bottom-left a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-bottom-left a:hover { color: #fff; }
.footer-bottom-center { text-align: center; color: #fff; }
.footer-bottom-right { display: flex; align-items: center; gap: 25px; }
.footer-bottom-right span { opacity: .7; }
.footer-bottom-tz, .footer-bottom-lang {
  display: flex; align-items: center; gap: 4px; color: #fff; font-size: 14px;
  cursor: pointer; white-space: nowrap;
}
.footer-bottom-tz svg, .footer-bottom-lang svg { width: 9px; height: 6px; flex-shrink: 0; }
.footer-bottom-lang img { width: 16px; height: 16px; border-radius: 2px; object-fit: cover; margin-right: 4px; }

/* POPUP OVERLAY */
.popup-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 99999; display: none; align-items: center; justify-content: center;
}
.popup-overlay.open { display: flex !important; }
.popup-box {
  background: #fff; border-radius: 10px;
  box-shadow: 4.545px 4.545px 22.725px 0px rgba(0,0,0,0.2);
  padding: 32px 36px; width: 380px; max-width: 90vw; text-align: center;
  position: relative;
}
.popup-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 22px; cursor: pointer; color: #999; line-height: 1;
}
.popup-close:hover { color: #333; }
.popup-title { font-size: 20px; font-family: 'Abel', sans-serif; color: #000; margin-bottom: 18px; }
.popup-field {
  width: 100%; height: 40px; border: 1px solid #ccc; border-radius: 6px;
  padding: 0 14px; font-size: 15px; font-family: 'Abel', sans-serif;
  margin-bottom: 12px; outline: none;
}
.popup-field:focus { border-color: var(--c-primary); }
.popup-submit {
  width: 100%; height: 40px; background: var(--c-primary); border: none;
  border-radius: 5.634px; color: #000; font-size: 15px;
  font-family: 'Abel', sans-serif; cursor: pointer; margin-top: 4px;
}
.popup-submit:hover { background: var(--c-primary-hover); color: #fff; }
.popup-success-icon { font-size: 48px; margin-bottom: 12px; }
.popup-success-text { font-size: 17px; font-family: 'Abel', sans-serif; color: #000; line-height: 1.5; }

/* SAVINGS */
.savings-lock { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.savings-lock svg { flex-shrink: 0; }
.savings-lock-text { font-size: 14px; font-family: 'Abel', sans-serif; color: var(--c-primary-text); }
.savings-lock .lock-icon { width: 14.544px; height: 18.12px; }
.savings-revealed { font-size: 14px; font-family: 'Abel', sans-serif; color: var(--c-primary-text); font-weight: 600; }
.savings-locked { cursor: pointer; position: relative; }
.savings-blur { filter: blur(5px); user-select: none; pointer-events: none; }
.savings-lock-icon { flex-shrink: 0; margin-left: 4px; }

.no-res { text-align: center; padding: 60px; color: #888; font-size: 16px; }

/* MOBILE COMMON */
@media (max-width: 1024px) {
  .site-wrapper { max-width: 100%; }
  .header { padding: 0 20px; height: 70px; }
  .header-nav { gap: 20px; margin-left: 20px; }
  .header-nav a { font-size: 14px; }
  .header-contacts { font-size: 13px; }
  .header-toggle { display: none; }
  .footer { padding: 0; }
  .footer-top { flex-direction: column; gap: 20px; padding: 20px 16px; }
  .footer-brand { flex: none; border-right: none; padding-right: 0; }
  .footer-columns { flex-wrap: wrap; gap: 20px; padding-left: 0; }
  .footer-col { min-width: calc(50% - 20px); }
  .footer-bottom { flex-direction: column; gap: 10px; padding: 16px; text-align: center; }
  .footer-bottom-left { justify-content: center; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 768px) {
  .header { height: 60px; padding: 0 16px; }
  .header-nav { display: none; }
  .header-contacts { display: none; }
  .header-lang { display: none; }
  .header-toggle { display: none; }
}
@media (max-width: 480px) {
  .header { height: 60px; padding: 0 12px; margin-top: 0; }
  .header-logo img { height: 36px; width: 36px; }
  .popup-box { width: 95vw; padding: 24px 20px; }
  .footer-top { padding: 16px 12px; }
  .footer-brand { padding-top: 20px; }
  .footer-socials { flex-wrap: wrap; gap: 8px; }
  .footer-columns { gap: 16px; }
  .footer-col { min-width: 100%; }
  .footer-bottom { padding: 12px; }
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 200;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #8e8e93;
  font-size: 10px;
  font-family: "Gotham Pro", "Abel", "Open Sans", sans-serif;
  width: 60px;
  height: 54px;
  transition: color .15s;
}
.mobile-bottom-nav a .mob-nav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-bottom-nav a .mob-nav-icon svg {
  width: 24px;
  height: 24px;
}
.mobile-bottom-nav a .mob-nav-icon img {
  width: 45px;
  height: auto;
  object-fit: contain;
}
.mobile-bottom-nav a .mob-nav-label {
  font-size: 10px;
  line-height: 1;
}
.mobile-bottom-nav a .mob-nav-icon svg path,
.mobile-bottom-nav a .mob-nav-icon svg rect,
.mobile-bottom-nav a .mob-nav-icon svg circle {
  stroke: #8e8e93;
}
.mobile-bottom-nav a.active {
  color: #3a3a3a;
}
.mobile-bottom-nav a.active .mob-nav-icon svg path,
.mobile-bottom-nav a.active .mob-nav-icon svg rect,
.mobile-bottom-nav a.active .mob-nav-icon svg circle {
  stroke: #3a3a3a;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 84px;
  }
}
