:root {
  --bg: #f5f8ff;
  --text: #14274b;
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f43f5e;
  --card: #ffffff;
  --line: #dae5ff;
  --shadow: 0 12px 28px rgba(20, 39, 75, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, #eef4ff 100%);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5edff;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(250px, 27vw, 360px);
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dce6ff;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1f3560;
  border-radius: 2px;
  transition: 0.22s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

nav a:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

nav a.nav-cta {
  color: #fff;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 999px;
  padding: 0.42rem 0.88rem;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}

nav a.nav-cta:hover {
  background: linear-gradient(90deg, #4338ca, #6d28d9);
  transform: translateY(-1px);
}

.banner {
  padding: 0;
}

.banner-full {
  width: 100%;
  max-width: none;
}

.banner-slider {
  position: relative;
  min-height: 560px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 48, 0.72) 0%, rgba(10, 22, 48, 0.46) 45%, rgba(10, 22, 48, 0.22) 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2.2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.banner-overlay {
  position: relative;
  z-index: 2;
  width: min(1120px, 92%);
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.25rem 0.7rem;
  background: #ebe9ff;
  color: #4338ca;
  border-radius: 999px;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.13;
  margin: 0 0 0.9rem;
  color: #fff;
}

.hero-text {
  margin: 0;
  color: #e2ecff;
  max-width: 62ch;
  line-height: 1.5;
}

.slide-side-card {
  background: rgba(8, 20, 47, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 1rem;
  color: #fff;
  backdrop-filter: blur(5px);
  box-shadow: 0 12px 24px rgba(5, 14, 35, 0.25);
  text-align: left;
  width: min(100%, 420px);
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.slide-label {
  margin: 0;
  color: #cfe3ff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.slide-side-card h2 {
  margin: 0.45rem 0 0.55rem;
  color: #fff;
  font-size: 1.35rem;
  width: 100%;
}

.slide-points {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.slide-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.55rem 0;
}

.slide-points li span:last-child {
  display: block;
  line-height: 1.4;
}

.side-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  flex-shrink: 0;
}

.btn.ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-top: 0.55rem;
  align-self: flex-start;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.slider-control.prev {
  left: 14px;
}

.slider-control.next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

section {
  padding: 2.4rem 0;
}

h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.about .container,
.calculators .container,
.categories .container,
.testimonials .container {
  background: #ffffff;
  border: 1px solid #e4ecff;
  border-radius: 16px;
  padding: 1.5rem;
}

.about .container {
  width: 100%;
  max-width: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  padding: 1.2rem clamp(1rem, 4vw, 4rem) 2rem;
}

.about {
  padding-top: 50px;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.about-visual {
  position: relative;
  min-height: 440px;
}

.about-main-img {
  width: 88%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d9e5ff;
  box-shadow: var(--shadow);
}

.about-overlay-img {
  position: absolute;
  left: 0;
  bottom: 72px;
  width: 52%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.about-years {
  position: absolute;
  right: 12px;
  bottom: 92px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dce7ff;
  box-shadow: var(--shadow);
  padding: 0.65rem 0.85rem;
  width: 210px;
}

.about-years-num {
  margin: 0;
  color: #4f46e5;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.about-years-text {
  margin: 0.2rem 0 0;
  color: #355280;
  font-size: 0.83rem;
}

.about-avatars {
  position: absolute;
  left: 44%;
  bottom: 16px;
  display: flex;
}

.about-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #d8e3ff;
  margin-left: -8px;
  box-shadow: var(--shadow);
}

.about-avatars span:first-child {
  margin-left: 0;
}

.about-subtitle {
  margin: 0 0 0.35rem;
  color: #4f46e5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 0.82rem;
}

.about-content h2 {
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.about-content p {
  margin-top: 0;
  color: #355280;
  line-height: 1.55;
}

.about-note {
  margin-bottom: 0.4rem;
  color: #4f658c;
  font-size: 0.95rem;
}

.about-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.about-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  flex-shrink: 0;
}

.about-metric {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #dee8ff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  width: 100%;
  max-width: 560px;
}

.about-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.about-metric-value {
  margin: 0;
  color: #4f46e5;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.about-metric-text {
  margin: 0.1rem 0 0;
  color: #355280;
  font-size: 0.84rem;
}

.about-content .btn.primary {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.85rem;
}

.section-text {
  margin-top: 0;
  color: #355280;
}

.calculators {
  position: relative;
}

.calculators .container {
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.09), transparent 42%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.08), transparent 40%),
    #ffffff;
  border: 1px solid #dfe8ff;
  box-shadow: 0 18px 34px rgba(20, 39, 75, 0.09);
}

.calculators h2 {
  margin-bottom: 0.3rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  background: rgba(235, 242, 255, 0.75);
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  padding: 0.65rem;
}

.tab-btn {
  border: 1px solid #d9e4ff;
  background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
  color: var(--text);
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(20, 39, 75, 0.06);
  transition: 0.24s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(79, 70, 229, 0.18);
}

.tab-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35);
}

.tab-panel {
  display: none;
  border: 1px solid #dce7ff;
  border-radius: 16px;
  padding: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 28px rgba(20, 39, 75, 0.08);
}

.tab-panel.active {
  display: block;
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  display: block;
  margin: 0.65rem 0 0.34rem;
  font-weight: 600;
  color: #2f4b7a;
}

input,
select {
  width: 100%;
  border: 1px solid #cad9ff;
  border-radius: 10px;
  padding: 0.7rem;
  background: #ffffff;
  transition: 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6d62ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.7rem;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.28);
}

.btn.ghost {
  background: #dffcf8;
  color: #065f57;
  margin-right: 0.4rem;
  border: 1px solid #bff4ea;
}

.result {
  margin-top: 1rem;
  background: linear-gradient(90deg, #ecf8ff 0%, #f4f9ff 100%);
  border: 1px solid #d5e9ff;
  border-left: 4px solid #06b6d4;
  padding: 0.78rem;
  border-radius: 10px;
  font-weight: 700;
  color: #21477a;
}

.course-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.course-row {
  border: 1px solid #d9e5ff;
  border-radius: 12px;
  padding: 0.7rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  box-shadow: 0 8px 16px rgba(20, 39, 75, 0.05);
}

.category-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1240px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dfe8ff;
  border-radius: 16px;
  padding: 2.35rem 1.05rem 1.1rem;
  box-shadow: 0 10px 24px rgba(20, 39, 75, 0.08);
  text-align: left;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
  animation: categoryIn 0.55s ease both;
  min-height: 220px;
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}

.category-card:nth-child(2) {
  animation-delay: 0.28s;
}

.category-card:nth-child(3) {
  animation-delay: 0.46s;
}

.category-card:nth-child(4) {
  animation-delay: 0.64s;
}

@keyframes categoryIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 32px rgba(79, 70, 229, 0.16);
  border-color: #c5d7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
}

.category-card:hover h3 {
  color: #3b32cf;
}

.category-card:hover .num {
  color: #0f5fa3;
}

.category-card:hover .icon {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  transform: translate(-50%, -50%) scale(1.06);
}

.category-card:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -0.38rem;
  top: 50%;
  width: 0.62rem;
  height: 2px;
  transform: translateY(-50%);
  background: #c6d6f8;
  z-index: 2;
}

.category-card:not(:last-child)::after {
  content: "➜";
  position: absolute;
  right: -0.98rem;
  top: 50%;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid #d7e3ff;
  background: #ffffff;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #7f92b8;
  font-size: 0.72rem;
  z-index: 3;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 1.2rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.25);
  transition: 0.25s ease;
}

.category-card h3 {
  margin: 0.25rem 0 0.28rem;
  font-size: 1.28rem;
  line-height: 1.15;
}

.category-card .num {
  margin: 0.2rem 0 0.36rem;
  font-weight: 700;
  color: #2a4b7d;
}

.category-card p:last-child {
  margin: 0;
  color: #425f8a;
  line-height: 1.45;
}

.categories .container {
  width: 100%;
  max-width: none;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 2.2rem clamp(1rem, 4vw, 4rem);
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.07), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.categories h2 {
  text-align: center;
}

.categories-intro {
  max-width: 760px;
  margin: 0.25rem auto 1.4rem;
  text-align: center;
  color: #446089;
  line-height: 1.55;
}

.blog-section {
  background: #f2f7ff;
}

.blog-section .container {
  width: 100%;
  max-width: none;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  padding: 2.2rem clamp(1rem, 4vw, 4rem);
}

.blog-head {
  max-width: 1240px;
  margin: 0 auto 1.4rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  align-items: center;
}

.blog-subtitle {
  margin: 0 0 0.45rem;
  color: #4f46e5;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.blog-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.1;
  max-width: 690px;
}

.blog-intro {
  margin: 0;
  color: #516b92;
  line-height: 1.65;
  max-width: 510px;
}

.blog-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #e5ecff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(20, 39, 75, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 28px rgba(79, 70, 229, 0.16);
}

.blog-thumb {
  position: relative;
  padding: 0.75rem 0.75rem 0;
}

.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.admin-badge {
  position: absolute;
  right: 1.05rem;
  bottom: -0.4rem;
  background: #fff;
  border: 1px solid #e7edff;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #182f56;
  box-shadow: 0 8px 14px rgba(20, 39, 75, 0.1);
}

.blog-card-body {
  padding: 0.95rem 1rem 1rem;
  text-align: left;
}

.blog-meta {
  margin: 0 0 0.58rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: #6a7f9e;
  font-size: 0.8rem;
}

.blog-line {
  display: block;
  width: 52px;
  height: 2px;
  background: #4f46e5;
  margin-bottom: 0.58rem;
}

.blog-card-body h3 {
  margin: 0 0 0.38rem;
  color: #203761;
  font-size: 1.55rem;
  line-height: 1.2;
}

.blog-card-body p {
  margin: 0 0 0.95rem;
  color: #4e678f;
  line-height: 1.45;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 999px;
  padding: 0.52rem 0.52rem 0.52rem 0.92rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.blog-btn span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0b1022;
}

.testimonials .container {
  width: 100%;
  max-width: none;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 2.2rem clamp(1rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.testimonial-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #dfe8ff;
  border-radius: 20px;
  padding: 1.05rem;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.4rem;
  align-items: center;
  box-shadow: 0 14px 30px rgba(20, 39, 75, 0.1);
}

.testimonial-image-wrap {
  position: relative;
}

.testimonial-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.testimonial-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #ffffff;
  border: 1px solid #e2eaff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #1e3357;
  font-weight: 700;
  font-size: 0.86rem;
}

.testimonial-content {
  text-align: left;
}

.testimonial-quote {
  margin: 0 0 1.2rem;
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #1a2e53;
  font-weight: 700;
}

.testimonial-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #152b50;
}

.testimonial-role {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #60779f;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.testimonial-nav {
  width: 52px;
  height: 52px;
  border: 1px solid #dbe5ff;
  border-radius: 999px;
  background: #ffffff;
  color: #243a61;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 39, 75, 0.12);
  transition: 0.25s ease;
}

.testimonial-nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
}

.testimonial-card.is-updating {
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0.45;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: 2rem;
  position: relative;
  color: #fff;
  padding: 2.3rem 0 1rem;
  overflow: visible;
  background:
    linear-gradient(rgba(7, 13, 28, 0.86), rgba(7, 13, 28, 0.9)),
    url("https://images.pexels.com/photos/4483610/pexels-photo-4483610.jpeg?auto=compress&cs=tinysrgb&w=1600")
      center / cover no-repeat;
}

.site-footer .container {
  width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 100%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr minmax(180px, 1.15fr);
  gap: 1.4rem;
  align-items: start;
  padding-bottom: 1.1rem;
  width: 100%;
}

.footer-brand-block,
.footer-links-block,
.footer-contact-block {
  min-width: 0;
}

.footer-brand-block h3 {
  display: flex;
  align-items: center;
  margin: 0 0 0.7rem;
}

.footer-logo-img {
  width: min(360px, 100%);
  height: auto;
  display: block;
}

.footer-brand-block p {
  margin: 0;
  color: #c8d6f3;
  line-height: 1.55;
  max-width: 390px;
  font-size: 0.98rem;
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.footer-social span {
  margin-right: 0.15rem;
  color: #e3edff;
  font-weight: 700;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  color: #e8f0ff;
  transition: 0.22s ease;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(79, 70, 229, 0.25);
}

.footer-links-block h4,
.footer-contact-block h4 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}

.footer-links-block a {
  display: block;
  text-decoration: none;
  color: #d6e2fb;
  margin: 0.42rem 0;
  position: relative;
  padding-left: 0.8rem;
  font-size: 0.97rem;
  line-height: 1.35;
}

.footer-links-block a:hover {
  color: #ffffff;
}

.footer-links-block a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #8ca7dc;
}

.footer-contact-block p {
  margin: 0.45rem 0;
  color: #d6e2fb;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.38;
  font-size: 0.97rem;
}

.footer-contact-block p span:first-child {
  margin-top: 0.05rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-block;
  overflow: hidden;
  position: relative;
  text-indent: -999px;
  font-size: 0;
}

.footer-contact-block p span:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.footer-contact-block p:nth-child(2) span:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6e2fb' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
}

.footer-contact-block p:nth-child(3) span:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6e2fb' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.footer-contact-block p:nth-child(4) span:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6e2fb' d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-contact-block p:nth-child(5) span:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6e2fb' d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

.footer-bottom {
  margin-top: 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.96rem;
}

.copy {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.96rem;
  color: #f2f6ff;
}

.footer-grid {
  display: none;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin: 0.3rem 0;
}

.copyright {
  text-align: center;
  margin: 1rem 0 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1000px) {
  .nav-wrap {
    gap: 0.75rem;
    padding: 0.72rem 0;
  }

  .brand-logo {
    width: clamp(210px, 26vw, 300px);
  }

  nav {
    gap: 0.38rem;
  }

  nav a {
    font-size: 0.93rem;
    padding: 0.32rem 0.55rem;
  }

  nav a.nav-cta {
    padding: 0.34rem 0.72rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: min(84vw, 300px);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand-block p,
  .footer-links-block a,
  .footer-contact-block p,
  .copy,
  .footer-bottom-links a {
    font-size: 0.92rem;
  }

  .footer-contact-block p span:last-child {
    word-break: break-word;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: sticky;
  }

  .nav-wrap {
    position: relative;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.55rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, 100%);
    background: #ffffff;
    border: 1px solid #dfe8ff;
    border-radius: 12px;
    box-shadow: 0 14px 24px rgba(20, 39, 75, 0.14);
    padding: 0.55rem;
    z-index: 70;
  }

  nav.open {
    display: grid;
    gap: 0.42rem;
  }

  nav a {
    text-align: left;
    background: #f4f7ff;
    border: 1px solid #e0e8ff;
    border-radius: 9px;
    padding: 0.5rem 0.55rem;
    font-size: 0.92rem;
  }

  nav a.nav-cta {
    justify-self: stretch;
    text-align: center;
  }

  .banner-slider {
    min-height: 520px;
  }

  .banner-overlay {
    min-height: 520px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .banner-content {
    padding: 1.25rem;
    max-width: none;
  }

  .slider-control {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .slide-side-card {
    margin: 0 1.25rem 1.2rem;
    justify-self: start;
    width: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-visual {
    min-height: 470px;
  }

  .about-main-img {
    width: 100%;
  }

  .about-overlay-img {
    width: 58%;
  }

  .about-years {
    right: 0;
    width: 196px;
  }

  .about-avatars {
    left: auto;
    right: 0;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1rem;
  }

  .category-card:not(:last-child)::after {
    display: none;
  }

  .category-card:not(:last-child)::before {
    display: none;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .testimonial-nav {
    display: none;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.85rem;
  }

  .testimonial-image-wrap img {
    height: 260px;
  }

  .testimonial-quote {
    font-size: clamp(1.18rem, 5vw, 1.8rem);
  }

  .testimonial-name {
    font-size: 1.3rem;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-head {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .blog-section h2 {
    max-width: none;
  }

  .blog-intro {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .slider-control,
  .slider-dots {
    display: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
