/*
 * WMVAA public-site alignment layer.
 * Keeps the existing CI views intact while sharing the portal's visual language.
 */
:root {
  --font-title: "Manrope", "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --bg-dark: #0b1020;
  --bg-card: #12192b;
  --bg-card-hover: #182238;
  --border-card: #293550;
  --border-focus: #4f7cff;
  --text-main: #f8fafc;
  --text-muted: #a8b3c7;
  --primary: #4f7cff;
  --primary-hover: #3d68df;
  --primary-glow: rgba(79, 124, 255, 0.16);
  --emerald: #35c985;
  --gold: #f5b942;
  --rose: #ef6a78;
  --cyan: #2bb7cc;
  --gradient-main: linear-gradient(135deg, #4f7cff, #315fd2);
  --gradient-card: linear-gradient(145deg, #12192b, #101728);
}

body::before,
body::after {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
}

.navbar {
  min-height: 68px;
  padding: .75rem max(1.5rem, calc((100vw - 1160px) / 2));
  border-bottom-color: var(--border-card);
  background: rgba(11, 16, 32, .92);
}

.navbar .brand-icon,
.mobile-top-bar .brand-icon,
.footer-logo > span {
  border-radius: 8px !important;
  background: var(--primary) !important;
  box-shadow: none !important;
}

.nav-link,
.btn-nav-admin,
.mobile-action-btn,
.search-box input,
.form-control,
.filter-btn {
  border-radius: 8px;
}

.glass-card,
.stat-card,
.slider-container,
.cta-portal-section,
.values-card {
  border-radius: 8px !important;
}

.glass-card {
  backdrop-filter: none;
  background: var(--gradient-card);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.container {
  max-width: 1160px;
}

.hero-title,
.slide-title {
  background: none !important;
  color: var(--text-main) !important;
  -webkit-text-fill-color: currentColor !important;
}

.section-title::before {
  background: var(--primary);
}

.cta-portal-section {
  background: var(--bg-card);
  border-color: var(--border-card);
}

.cta-portal-section::before,
.hero-ambient-glow,
.hero-deco {
  display: none !important;
}

.btn-portal-go,
.slide-tag {
  background: var(--primary);
  box-shadow: none;
}

.hero-image-box {
  display: none !important;
}

.slide-bg-overlay {
  background: linear-gradient(90deg, rgba(7, 10, 20, .93) 0%, rgba(7, 10, 20, .72) 48%, rgba(7, 10, 20, .24) 100%) !important;
}

.slide-content {
  max-width: min(760px, 62%);
}

.slide-title {
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.slide-desc {
  color: #d7dfeb !important;
}

.footer {
  border-top: 1px solid var(--border-card);
  background: #090e1b;
}

body.light-theme {
  --bg-dark: #f4f7fb;
  --bg-card: #ffffff;
  --bg-card-hover: #eef3f9;
  --border-card: #d7dfeb;
  --border-focus: #315fd2;
  --text-main: #101827;
  --text-muted: #59677b;
  --primary: #315fd2;
  --primary-hover: #244cad;
  --gradient-card: linear-gradient(145deg, #ffffff, #f8fafc);
}

body.light-theme .navbar,
body.light-theme .mobile-top-bar,
body.light-theme .mobile-bottom-nav {
  background: rgba(244, 247, 251, .94);
}

body.light-theme .footer {
  background: #e9eef5;
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1rem;
  }

  .slider-container {
    border-radius: 8px !important;
  }

  .hero-image-box {
    display: none;
  }

  .slide {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Refined classic hero
   Restores the original image-led composition with stronger responsive polish.
   ========================================================================== */

@media (min-width: 1101px) {
  .navbar {
    min-height: 80px;
    padding: .85rem 2.5rem;
  }

  .slider-container {
    height: clamp(380px, 27vw, 480px);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 22px !important;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .2);
  }

  .slide {
    padding: 3.25rem clamp(58px, 6vw, 92px);
  }

  .slide-content {
    max-width: min(620px, 50%);
  }

  .slide-title {
    font-size: clamp(2.25rem, 2.7vw, 3.35rem);
    line-height: 1.08;
  }

  .hero-image-box {
    display: block !important;
    right: clamp(48px, 5vw, 80px);
    width: clamp(250px, 20vw, 330px);
    height: clamp(250px, 20vw, 330px);
    border: 1px solid rgba(99, 102, 241, .5);
    border-radius: 20px !important;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .28);
  }

  .slider-nav {
    left: clamp(58px, 6vw, 92px);
  }
}

.slide-bg-overlay {
  background: linear-gradient(90deg, rgba(7, 10, 20, .91) 0%, rgba(7, 10, 20, .66) 52%, rgba(7, 10, 20, .18) 100%) !important;
}

.slide-title {
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .38);
}

.slide-desc {
  color: #d8e0ec !important;
}

body.light-theme .slider-container {
  border-color: rgba(99, 102, 241, .18);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .22);
}

body.light-theme .slide-bg-overlay {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, .88) 0%,
    rgba(255, 255, 255, .74) 48%,
    rgba(255, 255, 255, .34) 100%
  ) !important;
}

body.light-theme .slide-title {
  color: #101827 !important;
  text-shadow: 0 2px 12px rgba(255, 255, 255, .5);
}

body.light-theme .slide-desc {
  color: #475569 !important;
}

body.light-theme .btn-slide-cta {
  border-color: rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .9);
  color: #101827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .1);
}

body.light-theme .btn-slide-cta:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

body.light-theme .hero-image-box {
  border-color: rgba(99, 102, 241, .48);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}

body.light-theme .slider-dot {
  background: rgba(15, 23, 42, .18);
}

body.light-theme .slider-dot.active {
  background: var(--primary);
}

@media (min-width: 641px) and (max-width: 1100px) {
  .slider-container {
    height: clamp(300px, 43vw, 370px) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18) !important;
  }

  .slide {
    padding: 2rem clamp(32px, 5vw, 52px) !important;
  }

  .slide-content {
    max-width: 56% !important;
  }

  .slide-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem) !important;
  }

  .hero-image-box {
    display: block !important;
    right: clamp(22px, 4vw, 38px) !important;
    width: clamp(180px, 29vw, 235px) !important;
    height: clamp(180px, 29vw, 235px) !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 640px) {
  header.container {
    padding: 1.5rem .85rem 0 !important;
  }

  .slider-container {
    height: clamp(195px, 51vw, 225px) !important;
    border: 1px solid rgba(99, 102, 241, .2) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .18) !important;
  }

  .slide {
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1.15rem 1.1rem 1.45rem !important;
  }

  .slide-content {
    width: 62%;
    max-width: 62%;
    align-items: flex-start !important;
  }

  .slide-tag {
    padding: .18rem .58rem !important;
    font-size: .55rem !important;
  }

  .slide-title {
    font-size: clamp(1.05rem, 5vw, 1.32rem) !important;
    line-height: 1.12 !important;
    text-align: left !important;
  }

  .slide-desc {
    max-width: 100% !important;
    margin-bottom: .55rem !important;
    font-size: .68rem !important;
    line-height: 1.42 !important;
    text-align: left !important;
    -webkit-line-clamp: 2 !important;
  }

  .btn-slide-cta {
    min-height: 34px;
    padding: .45rem .75rem !important;
    font-size: .7rem !important;
  }

  .hero-image-box {
    display: block !important;
    right: .85rem !important;
    width: clamp(98px, 29vw, 122px) !important;
    height: clamp(98px, 29vw, 122px) !important;
    border-radius: 13px !important;
  }

  .slider-counter-badge {
    right: .75rem !important;
    bottom: .65rem !important;
    padding: .18rem .5rem !important;
  }

  .slider-progress-bar {
    border-radius: 0 0 0 15px;
  }

  body.light-theme .slide-bg-overlay {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, .9) 0%,
      rgba(255, 255, 255, .72) 57%,
      rgba(255, 255, 255, .28) 100%
    ) !important;
  }
}

/* ==========================================================================
   Responsive layout system v2
   ========================================================================== */

/* Fluid professional desktop canvas */
@media (min-width: 1101px) {
  .container {
    width: min(calc(100% - clamp(48px, 6vw, 120px)), 1600px);
    max-width: none;
    padding-inline: clamp(20px, 1.8vw, 32px);
  }

  .navbar {
    padding-inline: max(clamp(24px, 4vw, 72px), calc((100vw - 1600px) / 2 + 28px));
  }

  .slider-container {
    height: clamp(420px, 29vw, 540px);
  }

  .slide {
    padding-inline: clamp(48px, 6vw, 104px);
  }

  .slide-content {
    max-width: min(45vw, 700px);
  }

  .slide-title {
    font-size: clamp(2.35rem, 3vw, 3.65rem);
    line-height: 1.06;
  }

  .slide-desc {
    max-width: 620px;
    font-size: 1.02rem;
  }

  .slider-nav {
    left: clamp(48px, 6vw, 104px);
  }

  .circle-menu-grid {
    max-width: 1180px;
    gap: 1.5rem;
  }

  .circle-menu-icon {
    width: 58px;
    height: 58px;
  }

  .circle-menu-label {
    max-width: 100px;
    font-size: .78rem;
  }

  .cta-portal-section {
    padding: 2rem 2.25rem;
  }

  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .values-container {
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, .6fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-container {
    width: min(calc(100% - clamp(48px, 6vw, 120px)), 1600px);
    max-width: none !important;
  }
}

/* Tablet shell: app bar, no phone bottom navigation */
@media (min-width: 641px) and (max-width: 1100px) {
  body {
    padding-bottom: 0 !important;
  }

  .navbar {
    display: none !important;
  }

  .mobile-top-bar {
    display: flex !important;
    min-height: 64px;
    padding: calc(.7rem + env(safe-area-inset-top)) clamp(20px, 4vw, 38px) .7rem !important;
  }

  .mobile-top-bar .brand-text .brand-title {
    font-size: 1.12rem;
  }

  .mobile-top-bar .brand-text span {
    font-size: .72rem;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: none !important;
    padding: 1.35rem clamp(24px, 4vw, 44px) !important;
  }

  header.container {
    padding-bottom: .35rem !important;
  }

  main.container {
    padding-top: .35rem !important;
  }

  .slider-container {
    height: clamp(310px, 43vw, 400px) !important;
  }

  .slide {
    padding: 2rem clamp(32px, 6vw, 64px) !important;
  }

  .slide-content {
    max-width: 72%;
  }

  .slide-title {
    font-size: clamp(1.8rem, 3.8vw, 2.55rem) !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }

  .slide-desc {
    display: block !important;
    font-size: .92rem !important;
    text-align: left !important;
    -webkit-line-clamp: unset !important;
  }

  .slider-nav {
    display: flex !important;
    left: clamp(32px, 6vw, 64px) !important;
  }

  .slider-counter-badge {
    display: none !important;
  }

  .circle-menu-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 1.25rem .5rem !important;
    max-width: 100% !important;
  }

  .cta-portal-section {
    flex-direction: row !important;
    padding: 1.7rem !important;
    text-align: left !important;
  }

  .btn-portal-go {
    width: auto !important;
  }

  .app-grid,
  .news-grid,
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .values-container {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr) !important;
    gap: 1.5rem !important;
  }

  .values-card {
    min-width: 0;
  }

  .values-card h3 {
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
    letter-spacing: .08em !important;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .stat-card {
    padding: 1.55rem .8rem;
  }

  .stat-number {
    font-size: 2.35rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr !important;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

/* Phone-native shell */
@media (max-width: 640px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-top-bar {
    min-height: 60px;
    padding: calc(.65rem + env(safe-area-inset-top)) 1rem .65rem !important;
    background: rgba(11, 16, 32, .96);
  }

  .mobile-top-bar .brand {
    min-width: 0;
  }

  .mobile-top-bar .brand-text {
    min-width: 0;
  }

  .mobile-top-bar .brand-text .brand-title,
  .mobile-top-bar .brand-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav {
    min-height: 68px;
    padding: .45rem .45rem calc(.45rem + env(safe-area-inset-bottom)) !important;
    background: rgba(11, 16, 32, .97);
  }

  .mobile-bottom-item {
    height: 48px;
    border-radius: 8px;
    font-size: .66rem;
  }

  .mobile-bottom-item.portal-hub {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    margin-top: -20px;
    border-width: 3px;
  }

  header.container {
    width: 100%;
    padding: 0 !important;
  }

  main.container {
    width: 100%;
    padding: .85rem 1rem 1.5rem !important;
  }

  .slider-container {
    width: 100%;
    height: clamp(235px, 68vw, 290px) !important;
    margin: 0 !important;
    border-width: 0 0 1px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .slide {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    padding: 1.25rem 1rem 1.6rem !important;
  }

  .slide-bg-overlay {
    background: linear-gradient(to bottom, rgba(7, 9, 19, .08), rgba(7, 9, 19, .92) 72%, #070913 100%) !important;
  }

  .slide-content {
    width: 100%;
    gap: .3rem !important;
  }

  .slide-tag {
    margin-bottom: .15rem;
  }

  .slide-title {
    max-width: 100%;
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.12 !important;
    text-align: left !important;
    -webkit-line-clamp: 2 !important;
  }

  .slide-desc {
    max-width: calc(100% - 76px);
    margin-bottom: .65rem !important;
    font-size: .78rem !important;
    text-align: left !important;
    -webkit-line-clamp: 2 !important;
  }

  .btn-slide-cta {
    min-height: 38px;
    padding: .55rem .9rem !important;
    border-radius: 8px !important;
  }

  .slider-counter-badge {
    right: 1rem !important;
    bottom: 1.35rem !important;
    border-radius: 999px;
  }

  .circle-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.15rem .4rem !important;
    margin: .4rem 0 1.6rem !important;
  }

  .circle-menu-icon {
    width: 48px;
    height: 48px;
  }

  .circle-menu-label {
    max-width: 72px;
    font-size: .68rem;
  }

  .cta-portal-section {
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 1.2rem !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
  }

  .cta-portal-content h3 {
    font-size: 1.15rem !important;
    line-height: 1.25;
  }

  .cta-portal-content p {
    display: -webkit-box;
    overflow: hidden;
    font-size: .82rem !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .btn-portal-go {
    min-height: 44px;
    width: 100% !important;
    border-radius: 8px !important;
  }

  .section-title {
    margin-bottom: 1rem;
    font-size: 1.2rem !important;
  }

  .modules {
    margin-bottom: 2.2rem !important;
  }

  .modules .app-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .65rem !important;
  }

  .modules .app-grid .glass-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    padding: .9rem !important;
  }

  .modules .app-grid .app-icon {
    width: 46px;
    height: 46px;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
  }

  .modules .app-grid h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    padding-right: 42px;
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modules .app-grid p {
    grid-column: 2;
    grid-row: 2;
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--text-muted);
    font-size: .72rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .modules .app-grid .card-status {
    top: .7rem;
    right: .7rem;
    padding: .16rem .4rem;
    font-size: .56rem;
  }

  .modules .app-grid .card-footer {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    padding: 0;
    border: 0;
  }

  .modules .app-grid .card-footer span {
    display: none;
  }

  .values-container {
    gap: 1rem !important;
    margin-bottom: 2.2rem !important;
  }

  .values-container > div:first-child p {
    margin-bottom: 1.1rem !important;
    font-size: .9rem !important;
    text-align: left !important;
  }

  .values-card {
    padding: 1.35rem 1rem !important;
  }

  .values-card h3 {
    font-size: 2.15rem !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
  }

  .stat-card {
    min-height: 132px;
    justify-content: center;
    padding: 1rem .65rem !important;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .stat-label {
    font-size: .76rem !important;
  }

  .stat-sub {
    font-size: .62rem !important;
  }

  .swiper-scroll {
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
  }

  .swiper-slide {
    flex-basis: min(82vw, 310px);
  }

  .footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
  }

  .footer-grid {
    gap: 1.4rem !important;
    text-align: left !important;
  }

  .footer-nav-section {
    align-items: flex-start !important;
  }

  .footer-social-links {
    justify-content: flex-start !important;
  }

  .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .floating-whatsapp-btn {
    display: none !important;
  }

  .teacher-grid {
    grid-template-columns: 1fr !important;
    gap: .65rem !important;
  }

  .teacher-card {
    min-height: 104px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2px 13px;
    padding: .9rem !important;
    text-align: left !important;
  }

  .teacher-avatar-container {
    width: 64px;
    height: 64px;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
  }

  .teacher-card h4 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: .95rem;
  }

  .teacher-role {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: .75rem;
  }

  .teacher-info {
    grid-column: 2;
    grid-row: 3;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .teacher-card {
    position: relative;
    padding-right: 3.8rem !important;
  }

  .teacher-actions {
    position: absolute;
    right: .9rem;
    bottom: .9rem;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .teacher-action-link {
    width: 36px;
    height: 36px;
    border-radius: 8px !important;
  }

  .mobile-sub-nav {
    margin-inline: -1rem;
    padding-inline: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-sub-nav::-webkit-scrollbar {
    display: none;
  }

  .kontak-layout,
  .kontak-layout > *,
  .contact-grid,
  .contact-text,
  .kontak-map .glass-card {
    min-width: 0 !important;
  }

  .contact-text p,
  .contact-text a {
    overflow-wrap: anywhere;
  }

  #map {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px !important;
  }
}

/* Final hero preference overrides. Kept last to win over the responsive system. */
@media (min-width: 1101px) {
  .navbar {
    min-height: 80px;
    padding: .85rem 2.5rem;
  }

  .slider-container {
    height: clamp(380px, 27vw, 480px);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 22px !important;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .2);
  }

  .slide {
    padding: 3.25rem clamp(58px, 6vw, 92px);
  }

  .slide-content {
    max-width: min(620px, 50%);
  }

  .slide-title {
    font-size: clamp(2.25rem, 2.7vw, 3.35rem);
  }

  .hero-image-box {
    display: block !important;
    right: clamp(48px, 5vw, 80px);
    width: clamp(250px, 20vw, 330px);
    height: clamp(250px, 20vw, 330px);
    border-radius: 20px !important;
  }

  .slider-nav {
    left: clamp(58px, 6vw, 92px);
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .slider-container {
    height: clamp(300px, 43vw, 370px) !important;
    border-radius: 18px !important;
  }

  .slide-content {
    max-width: 56% !important;
  }

  .hero-image-box {
    display: block !important;
    right: clamp(22px, 4vw, 38px) !important;
    width: clamp(180px, 29vw, 235px) !important;
    height: clamp(180px, 29vw, 235px) !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 640px) {
  header.container {
    padding: 1.5rem .85rem 0 !important;
  }

  .slider-container {
    height: clamp(195px, 51vw, 225px) !important;
    margin: 0 !important;
    border: 1px solid rgba(99, 102, 241, .2) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .18) !important;
  }

  .slide {
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1.15rem 1.1rem 1.45rem !important;
  }

  .slide-content {
    width: 62%;
    max-width: 62%;
  }

  .slide-title {
    font-size: clamp(1.05rem, 5vw, 1.32rem) !important;
  }

  .slide-desc {
    max-width: 100% !important;
    font-size: .68rem !important;
  }

  .hero-image-box {
    display: block !important;
    right: .85rem !important;
    width: clamp(98px, 29vw, 122px) !important;
    height: clamp(98px, 29vw, 122px) !important;
    border-radius: 13px !important;
  }

  .slider-counter-badge {
    right: .75rem !important;
    bottom: .65rem !important;
  }
}

/* Responsive footer system. Kept last so every public page shares one layout. */
.footer {
  margin-top: auto;
  padding: 0 !important;
  border-top: 1px solid var(--border-card);
  background: #090e1b;
}

.footer-container {
  width: min(calc(100% - clamp(48px, 6vw, 120px)), 1600px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 68px) 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(150px, .72fr)) minmax(210px, .85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  text-align: left;
}

.footer-nav-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-main);
  text-decoration: none;
}

.footer-logo img,
.footer-logo > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.footer-logo img {
  object-fit: contain;
}

.footer-logo > span {
  display: grid;
  place-items: center;
}

.footer-logo svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.footer-brand-name {
  color: var(--text-main);
  font: 800 16px/1.2 var(--font-title);
}

.footer-description {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-contact-info {
  display: grid;
  gap: 9px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-contact-info span,
.footer-contact-info a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.footer-contact-info svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}

.footer-contact-info a:hover,
.footer-links-section a:hover,
.footer-legal-links a:hover {
  color: var(--primary);
}

.footer-nav-section h4 {
  margin: 4px 0 16px;
  color: var(--text-main);
  font: 800 13px/1.2 var(--font-title);
  text-transform: uppercase;
}

.footer-links-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links-section a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-links-section a:hover {
  transform: translateX(2px);
}

.footer-social-section p {
  margin: 0 0 15px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-social-links {
  display: flex;
  gap: 9px;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-social-links a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-links svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 12px;
  text-align: left;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

body.light-theme .footer {
  background: #f3f6fa;
}

@media (min-width: 641px) and (max-width: 1100px) {
  .footer-container {
    width: calc(100% - clamp(48px, 8vw, 80px));
    padding: 44px 0 22px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(140px, .65fr)) !important;
    gap: 32px 28px;
  }

  .footer-brand-section {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .footer-social-section {
    grid-column: 2 / 4 !important;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-card);
  }

  .footer-social-section h4 {
    margin: 0 0 5px;
  }

  .footer-social-section p {
    max-width: 280px;
    margin: 0;
  }

  .footer-social-links {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-content: flex-end;
  }

  .footer-bottom {
    margin-top: 28px;
  }
}

@media (max-width: 760px) and (min-width: 641px) {
  .footer-container {
    width: calc(100% - 40px);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  }

  .footer-brand-section {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  .footer-social-section {
    grid-column: 2 !important;
    grid-template-columns: 1fr;
  }

  .footer-social-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .footer {
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }

  .footer-container {
    width: 100%;
    padding: 32px 16px 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 20px !important;
    text-align: left !important;
  }

  .footer-brand-section {
    grid-column: 1 / -1;
  }

  .footer-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .footer-contact-info {
    font-size: 12px;
  }

  .footer-nav-section h4 {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .footer-links-section ul {
    gap: 8px;
  }

  .footer-links-section a {
    font-size: 12.5px;
  }

  .footer-social-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-card);
  }

  .footer-social-section h4 {
    grid-column: 1;
    margin: 0 0 4px;
  }

  .footer-social-section p {
    grid-column: 1;
    max-width: 220px;
    margin: 0;
    font-size: 12px;
  }

  .footer-social-links {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-content: flex-end !important;
  }

  .footer-social-links a {
    width: 38px;
    height: 38px;
  }

  .footer-bottom {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 440px) {
  .footer-social-section {
    grid-template-columns: 1fr;
  }

  .footer-social-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start !important;
    margin-top: 14px;
  }
}
