/* =====================================================
   01. FOOTER WRAPPER
===================================================== */

.site-footer {
  padding: 28px;
}

.footer-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 36px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 4% 0%, rgba(47,125,255,.18), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(255,45,69,.20), transparent 30%),
    rgba(5,5,7,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}

/* =====================================================
   02. TOP GRID
===================================================== */

.footer-top {
  display: grid;
  grid-template-columns: 310px repeat(4, 1fr);
  gap: 26px;
}

.footer-brand {
  padding-right: 26px;
}

.footer-logo img {
  width: 210px;
  height: auto;
  display: block;
}

.footer-brand p {
  max-width: 270px;
  margin: 22px 0 20px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.65;
}

/* =====================================================
   03. BADGES
===================================================== */

.footer-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-badges span {
  height: 31px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: rgba(255,255,255,.025);
  transition: all .22s ease;
}

.badge-fast {
  color: #2f7dff;
  border: 1px solid rgba(47,125,255,.85);
}

.badge-modern {
  color: #ff2d45;
  border: 1px solid rgba(255,45,69,.85);
}

.badge-fast:hover {
  background: rgba(47,125,255,.12);
  box-shadow: 0 0 18px rgba(47,125,255,.18);
  transform: translateY(-1px);
}

.badge-modern:hover {
  background: rgba(255,45,69,.12);
  box-shadow: 0 0 18px rgba(255,45,69,.18);
  transform: translateY(-1px);
}

.badge-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 14px;
}

/* =====================================================
   04. SOCIALS
===================================================== */

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.12);
  text-decoration: none;
  transition: all .2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  border-color: currentColor;
}

.footer-socials a .ct-icon {
  width: 16px;
  height: 16px;
}

.footer-socials .ct-icon svg {
  width: 100%;
  height: 100%;
}

.footer-socials a[aria-label="Facebook"] .ct-icon svg,
.footer-socials a[aria-label="X"] .ct-icon svg,
.footer-socials a[aria-label="LinkedIn"] .ct-icon svg,
.footer-socials a[aria-label="TikTok"] .ct-icon svg {
  fill: currentColor;
  stroke: none;
}

.footer-socials a[aria-label="Instagram"] .ct-icon svg,
.footer-socials a[aria-label="YouTube"] .ct-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-socials a[aria-label="Facebook"]:hover { color: #1877f2; }
.footer-socials a[aria-label="X"]:hover { color: #ffffff; }
.footer-socials a[aria-label="Instagram"]:hover { color: #e1306c; }
.footer-socials a[aria-label="YouTube"]:hover { color: #ff0033; }
.footer-socials a[aria-label="LinkedIn"]:hover { color: #0a66c2; }
.footer-socials a[aria-label="TikTok"]:hover { color: #ff2d55; }

/* =====================================================
   05. COLUMNS
===================================================== */

.footer-column {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,.09);
}

.footer-column h4 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li + li {
  margin-top: 9px;
}

.footer-column a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 11.5px;
  transition: all .18s ease;
}

.footer-column a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-column a small {
  margin-left: auto;
  color: rgba(255,255,255,.35);
}

/* =====================================================
   06. GLOBAL ICONS
===================================================== */

.ct-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 15px;
}

.ct-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-column.blue .ct-icon,
.newsletter-benefits .blue .ct-icon {
  color: #2f7dff;
}

.footer-column.red .ct-icon,
.newsletter-benefits .red .ct-icon {
  color: #ff2d45;
}

/* =====================================================
   07. NEWSLETTER
===================================================== */

.newsletter-card {
  margin-top: 28px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 1.15fr .85fr 1.15fr;
  align-items: center;
  gap: 22px;
  border-radius: 9px;
  border: 1px solid rgba(255,45,69,.9);
  border-left-color: #2f7dff;
  background: rgba(255,255,255,.015);
}

.newsletter-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter-mail-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
}

.newsletter-mail-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter-title h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.newsletter-title p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  line-height: 1.45;
}

.newsletter-form {
  height: 40px;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  color: #fff;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.12);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  outline: none;
  caret-color: #fff;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,.48);
}

.newsletter-form input:focus {
  color: #fff;
  background: rgba(0,0,0,.32);
  border-color: rgba(255,255,255,.16);
}

.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus,
.newsletter-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(0,0,0,.32) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,.32) inset !important;
  border-color: rgba(255,255,255,.12);
  transition: background-color 9999s ease-in-out 0s;
}

.newsletter-form button {
  padding: 0 20px;
  border: 0;
  border-radius: 0 6px 6px 0;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, #326dff, #ff2d45);
  cursor: pointer;
}

.newsletter-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.newsletter-benefits div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.newsletter-benefits .ct-icon {
  width: 24px;
  height: 24px;
}

/* =====================================================
   08. FOOTER BOTTOM
===================================================== */

.footer-bottom {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 11px;
}

/* =====================================================
   09. LANGUAGE BUTTON
===================================================== */

.language-btn {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.18);
}

.language-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

.language-btn .ct-icon {
  width: 14px;
  height: 14px;
  color: #28c7ff;
  flex: 0 0 14px;
}

.language-btn .ct-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.language-btn span {
  display: inline-flex;
  align-items: center;
  height: 14px;
  line-height: 14px;
  font-weight: 500;
}

.language-btn::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  opacity: .7;
  margin-left: 1px;
  transform: translateY(-1px);
}
.lang-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}
/* =====================================================
   10. RESPONSIVE FOOTER
===================================================== */

@media (max-width: 1180px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-brand p { max-width: 560px; }
  .newsletter-card { grid-template-columns: 1fr; align-items: stretch; }
  .newsletter-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-footer { padding: 16px; }
  .footer-shell { padding: 22px 18px; border-radius: 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-column { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
  .footer-badges, .footer-socials { flex-wrap: wrap; }
  .newsletter-form { height: auto; flex-direction: column; gap: 10px; }
  .newsletter-form input, .newsletter-form button { min-height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }
  .newsletter-benefits { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 520px) {
  .site-footer { padding: 10px; }
  .footer-logo img { width: 178px; }
  .newsletter-title { align-items: flex-start; }
}
