﻿/* assets/css/style.css */
:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --accent: #f59e0b;
  --dark: #111827;
  --light: #f3f4f6;
  --text: #374151;
  --text-light: #6b7280;
  --radius: 18px;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  --nav-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #eef2ff 0%, #f8fafc 45%, #e0f2fe 100%);
  transition: background 0.4s ease, color 0.3s ease;
}

body.theme-galaxy {
  --primary: #7c3aed;
  --secondary: #4f46e5;
  --accent: #22d3ee;
  --dark: #f8fafc;
  --light: #0c1530;
  --text: #dbeafe;
  --text-light: #a5b4fc;
  --shadow: 0 22px 50px rgba(7, 12, 32, 0.6);
  background: radial-gradient(circle at 15% 20%, #312e81 0%, #111827 45%, #020617 100%);
}

body.theme-galaxy::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15), transparent 24%),
    radial-gradient(circle at 80% 24%, rgba(217, 70, 239, 0.16), transparent 22%),
    radial-gradient(circle at 65% 80%, rgba(45, 212, 191, 0.14), transparent 24%);
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  color: var(--dark);
}

.section__lead {
  margin: 0 0 18px;
  color: #475569;
  font-size: 18px;
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(120deg, #7c3aed, #ec4899);
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--secondary {
  background: linear-gradient(120deg, #facc15, #fb7185);
  color: #111827;
}

.btn--outline {
  border-color: rgba(124, 58, 237, 0.45);
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
}

.btn--outline:hover {
  background: linear-gradient(120deg, #6d28d9, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.28), 0 0 0 5px rgba(236, 72, 153, 0.12);
  transform: translateY(-2px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 0;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar__inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.navbar__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.navbar__menu a {
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.2s ease;
}

.navbar__menu a:hover {
  color: #fff;
  background: linear-gradient(120deg, #6d28d9, #ec4899);
}

.navbar__cta {
  margin-left: 4px;
}

.navbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #f8fafc;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.navbar__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.navbar__toggle.is-active {
  background: linear-gradient(120deg, #7c3aed, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.34);
}

.navbar__toggle i {
  display: block;
  line-height: 1;
  transition: transform 0.28s ease;
}

.navbar__toggle.is-active i {
  transform: rotate(90deg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  background: rgba(99, 102, 241, 0.08);
  color: #1f2937;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  background: linear-gradient(120deg, #4f46e5, #ec4899);
  color: #fff;
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.28);
}

.theme-toggle i {
  font-size: 13px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.36));
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 980;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

body.theme-galaxy .navbar {
  background: rgba(7, 12, 30, 0.78);
  box-shadow: none;
}

body.theme-galaxy .navbar__brand,
body.theme-galaxy .navbar__menu a {
  color: #e2e8f0;
}

body.theme-galaxy .navbar__toggle {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

body.theme-galaxy .navbar__menu {
  background: rgba(7, 12, 30, 0.95);
  border-left-color: rgba(148, 163, 184, 0.2);
}

body.theme-galaxy .btn--primary {
  background: linear-gradient(120deg, #06b6d4, #8b5cf6, #ec4899);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45), 0 12px 28px rgba(6, 182, 212, 0.38);
}

body.theme-galaxy .theme-toggle {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.14);
  color: #cffafe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 0 24px rgba(34, 211, 238, 0.2);
}

body.theme-galaxy .theme-toggle:hover {
  background: linear-gradient(120deg, #06b6d4, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.38);
}

body.theme-galaxy .card,
body.theme-galaxy .about-card,
body.theme-galaxy .stat,
body.theme-galaxy .portfolio__item,
body.theme-galaxy .team-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.65), inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

body.theme-galaxy .section__title,
body.theme-galaxy .card h3,
body.theme-galaxy .card h4,
body.theme-galaxy .about-card h2,
body.theme-galaxy .portfolio__meta h4,
body.theme-galaxy .team-card__body h4 {
  color: #f8fafc;
}

body.theme-galaxy .section__lead,
body.theme-galaxy p,
body.theme-galaxy .portfolio__meta p,
body.theme-galaxy .card p,
body.theme-galaxy .team-card__body p {
  color: #cbd5e1;
}

body.theme-galaxy .stat h3 {
  color: #67e8f9;
  background: linear-gradient(120deg, #67e8f9 0%, #a78bfa 45%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.52), 0 0 20px rgba(244, 114, 182, 0.34);
  font-weight: 800;
}

body.theme-galaxy .stat {
  box-shadow: 0 22px 46px rgba(2, 6, 23, 0.72), inset 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 26px rgba(56, 189, 248, 0.16);
}

body.theme-galaxy .stat__icon {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(67, 56, 202, 0.42));
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 20px rgba(56, 189, 248, 0.26);
}

body.theme-galaxy .stat__icon img {
  opacity: 1;
  filter: brightness(1.2) saturate(1.3) contrast(1.12) drop-shadow(0 0 8px rgba(125, 211, 252, 0.44));
}

body.theme-galaxy .footer {
  background: #050a1c;
}

.hero {
  position: relative;
  min-height: calc(92vh - var(--nav-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, #4c1d95, #1e3a8a 42%, #0f172a 85%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.52), rgba(14, 165, 233, 0.4));
  z-index: 0;
}

.hero::after {
  content: none;
  display: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
  max-width: 760px;
}

.hero__content h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
}

.hero__content p {
  margin: 0 0 22px;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero__dot.is-active {
  background: #fff;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.service-card {
  border: 1px solid #dbe3ef;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.service-card h3 {
  margin: 0 0 10px;
}

.service-card p {
  margin: 0;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
}

.services-grid .service-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.service-card__media {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card__hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d4ed8;
}

.service-modal[hidden] {
  display: none !important;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.service-modal__dialog {
  position: relative;
  width: min(92vw, 760px);
  max-height: 88vh;
  overflow: auto;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.service-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #0f172a;
  cursor: pointer;
}

.service-modal__media {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, #dbeafe, #e9d5ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-modal__fallback-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
  font-size: 34px;
}

.service-modal__dialog h3 {
  margin: 0 0 10px;
}

.service-modal__dialog p {
  margin: 0;
  line-height: 1.7;
}

body.service-modal-open {
  overflow: hidden;
}

body.theme-galaxy .service-card {
  border-color: rgba(148, 163, 184, 0.24);
}

body.theme-galaxy .service-card__hint {
  color: #93c5fd;
}

body.theme-galaxy .service-modal__dialog {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

body.theme-galaxy .service-modal__dialog h3,
body.theme-galaxy .service-modal__dialog p {
  color: #e2e8f0;
}

body.theme-galaxy .service-modal__close {
  background: #1e293b;
  color: #e2e8f0;
}

body.theme-galaxy .service-modal__media {
  background: linear-gradient(120deg, #1e293b, #312e81);
}

body.theme-galaxy .service-modal__fallback-icon {
  background: rgba(99, 102, 241, 0.24);
  color: #a5b4fc;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 24px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.team-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e2e8f0;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__body {
  padding: 16px 18px 18px;
}

.team-card__body h4 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.team-card__body p {
  margin: 0;
  color: var(--text-light);
  font-weight: 500;
}

.about-section {
  position: relative;
  overflow: hidden;
}

.about-section--home {
  margin-top: 0;
  padding-top: 80px;
  overflow: hidden;
  z-index: 2;
}

.about-section--home::before,
.about-section--home::after,
body.theme-galaxy .about-section--home::before,
body.theme-galaxy .about-section--home::after {
  content: none;
  display: none;
}

.about-section > .container {
  position: relative;
  z-index: 1;
}

.about-layout {
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: stretch;
}

.about-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-image {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  min-height: 320px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats .stat:nth-child(3):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 16px) / 2);
}

.stat {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 140px;
}

.stat__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.08);
}

.stat__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.75;
}

.stat h3 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1;
  color: #0b1b42;
}

.stat p {
  margin: 0;
  color: #1e3a66;
  font-weight: 600;
}

.portfolio__filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.portfolio__filters .btn {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border-width: 2px;
  border-color: rgba(99, 102, 241, 0.42);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 255, 0.92));
  color: #3730a3;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.portfolio__filters .btn:hover,
.portfolio__filters .btn:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #7c3aed, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28), 0 0 0 3px rgba(236, 72, 153, 0.14);
}

.portfolio__filters .btn.is-active {
  background: linear-gradient(120deg, #6d28d9, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.28), 0 0 0 3px rgba(236, 72, 153, 0.16);
}

body.theme-galaxy .portfolio__filters .btn {
  border-color: rgba(129, 140, 248, 0.55);
  background: linear-gradient(120deg, rgba(30, 41, 59, 0.82), rgba(49, 46, 129, 0.72));
  color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.48);
}

body.theme-galaxy .portfolio__filters .btn:hover,
body.theme-galaxy .portfolio__filters .btn:focus-visible {
  background: linear-gradient(120deg, #06b6d4, #8b5cf6, #ec4899);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 14px 30px rgba(2, 6, 23, 0.75), 0 0 22px rgba(139, 92, 246, 0.38);
}

body.theme-galaxy .portfolio__filters .btn.is-active {
  background: linear-gradient(120deg, #06b6d4, #8b5cf6, #ec4899);
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3), 0 14px 32px rgba(2, 6, 23, 0.75), 0 0 26px rgba(139, 92, 246, 0.42);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
}

.portfolio-grid .portfolio__item {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.portfolio__item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio__meta {
  padding: 16px 16px 14px;
}

.portfolio__meta h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.portfolio__meta p {
  color: var(--text-light);
  margin-bottom: 0;
}

.portfolio__thumb {
  overflow: hidden;
}

.portfolio__thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio__item:hover .portfolio__thumb img {
  transform: scale(1.04);
}

.testimonial {
  display: none;
}

.testimonial.is-active {
  display: block;
}

.testimonial__card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.testimonial__avatar-wrap {
  width: 86px;
  height: 86px;
}

.testimonial__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.testimonial__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a;
  background: linear-gradient(140deg, #dbeafe, #e9d5ff);
}

.testimonial__stars {
  display: inline-flex;
  gap: 5px;
  margin-top: 8px;
}

.testimonial__stars .fa-star {
  color: #cbd5e1;
  font-size: 0.96rem;
}

.testimonial__stars .fa-star.is-filled {
  color: #f59e0b;
}

.testimonial__name {
  display: block;
  font-size: 1.06rem;
}

.testimonial__meta {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.testimonial__label {
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.testimonial__quote {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
}

body.theme-galaxy .testimonial__avatar {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.34), 0 10px 24px rgba(2, 6, 23, 0.65);
}

body.theme-galaxy .testimonial__avatar--fallback {
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(79, 70, 229, 0.6));
}

body.theme-galaxy .testimonial__stars .fa-star {
  color: rgba(148, 163, 184, 0.5);
}

body.theme-galaxy .testimonial__label {
  color: #93c5fd;
}

body.theme-galaxy .testimonial__stars .fa-star.is-filled {
  color: #fbbf24;
}

.cta {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.88), rgba(14, 165, 233, 0.84)), url('../images/cta.jpg') center/cover;
  color: #fff;
  text-align: center;
  border-radius: 26px;
  margin: 0 16px 64px;
}

.footer {
  background: linear-gradient(150deg, #0f172a 0%, #111827 48%, #0b1220 100%);
  color: #e2e8f0;
  padding: 58px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.footer__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.footer__quick-links {
  display: grid;
  gap: 8px;
}

.footer__quick-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #cbd5e1;
  transition: transform 0.22s ease, color 0.22s ease;
}

.footer__quick-links a:hover,
.footer__quick-links a:focus-visible {
  color: #fff;
  transform: translateX(4px);
}

.footer__contact {
  display: grid;
  gap: 10px;
}

.footer__contact-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.footer__contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.footer__contact-link--email::before {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.42), rgba(14, 165, 233, 0.28));
}

.footer__contact-link--phone::before {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.42), rgba(59, 130, 246, 0.28));
}

.footer__contact-link i {
  font-size: 0.9rem;
}

.footer__contact-link:hover,
.footer__contact-link:focus-visible {
  color: #fff;
  border-color: rgba(147, 197, 253, 0.6);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.28), 0 0 0 3px rgba(148, 163, 184, 0.08);
  transform: translateY(-2px) scale(1.01);
}

.footer__contact-link:hover::before,
.footer__contact-link:focus-visible::before {
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__social-link {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.footer__social-link::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 58%);
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.3s ease, opacity 0.25s ease;
  pointer-events: none;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.footer__social-link:hover::before,
.footer__social-link:focus-visible::before {
  opacity: 0.9;
  transform: scale(1);
}

.footer__social-link.is-facebook:hover,
.footer__social-link.is-facebook:focus-visible {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.footer__social-link.is-instagram:hover,
.footer__social-link.is-instagram:focus-visible {
  background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.42);
}

.footer__social-link.is-x:hover,
.footer__social-link.is-x:focus-visible {
  background: linear-gradient(135deg, #334155, #0f172a);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.42);
}

.footer__social-link.is-linkedin:hover,
.footer__social-link.is-linkedin:focus-visible {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.42);
}

.footer__social-link.is-tiktok:hover,
.footer__social-link.is-tiktok:focus-visible {
  background: linear-gradient(135deg, #111827, #06b6d4, #ec4899);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.38);
}

body.theme-galaxy .footer {
  background: linear-gradient(150deg, #060b1a 0%, #0a1023 48%, #12193a 100%);
  border-top-color: rgba(129, 140, 248, 0.25);
}

body.theme-galaxy .footer__contact-link {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(30, 41, 59, 0.7);
}

body.theme-galaxy .footer__contact-link:hover,
body.theme-galaxy .footer__contact-link:focus-visible {
  border-color: rgba(103, 232, 249, 0.65);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 14px 30px rgba(2, 6, 23, 0.75), 0 0 20px rgba(34, 211, 238, 0.24);
}

body.theme-galaxy .footer__social-link {
  border-color: rgba(129, 140, 248, 0.42);
  background: rgba(30, 41, 59, 0.75);
}

body.theme-galaxy .footer__social-link:hover,
body.theme-galaxy .footer__social-link:focus-visible {
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 14px 30px rgba(2, 6, 23, 0.75), 0 0 18px rgba(139, 92, 246, 0.32);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-family: inherit;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.alert--success {
  background: #ecfdf3;
  color: #166534;
}

.alert--error {
  background: #fef2f2;
  color: #991b1b;
}

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top.is-clicked {
  transform: translateY(-4px);
}

.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 992px) {
  .section {
    padding: 64px 0;
  }


  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-section--home {
    margin-top: 0;
    padding-top: 64px;
    overflow: hidden;
  }

  .about-image {
    min-height: 260px;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .stats .stat:nth-child(3):last-child {
    width: calc((100% - 16px) / 2);
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }


  .container {
    padding: 0 20px;
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .theme-toggle {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 0;
    justify-content: center;
  }

  .theme-toggle span {
    display: none;
  }

  .navbar__menu {
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: none;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.24s ease, visibility 0.24s step-end;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
    z-index: 1001;
    overflow: visible;
  }

  .navbar__menu.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar__menu a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.06rem;
    border: 1px solid transparent;
    background: transparent;
  }

  .navbar__menu a:hover,
  .navbar__menu a:focus-visible {
    transform: none;
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1e3a8a;
  }

  .navbar__cta {
    width: 100%;
    margin-top: 12px;
    border-radius: 14px;
  }

  body.theme-galaxy .navbar__menu {
    background: linear-gradient(180deg, #0b1228 0%, #111c3a 100%);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 46px rgba(2, 6, 23, 0.74);
  }

  body.theme-galaxy .navbar__menu a {
    color: #e2e8f0;
  }

  body.theme-galaxy .navbar__menu a:hover,
  body.theme-galaxy .navbar__menu a:focus-visible {
    background: rgba(79, 70, 229, 0.28);
    border-color: rgba(129, 140, 248, 0.58);
    color: #fff;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero__content p {
    font-size: 18px;
  }

  .service-card__media {
    height: 160px;
  }

  .service-modal__dialog {
    width: calc(100vw - 20px);
    margin-top: 5vh;
    padding: 18px;
    border-radius: 16px;
  }

  .service-modal__media {
    height: 190px;
  }

  .testimonial__card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .testimonial__stars {
    justify-content: center;
  }

  .cta {
    margin: 0 10px 54px;
  }

  .about-section--home {
    margin-top: 0;
    padding-top: 64px;
    overflow: hidden;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stats .stat:nth-child(3):last-child {
    grid-column: auto;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .navbar__toggle {
    display: none !important;
  }

  .navbar__menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .theme-toggle {
    width: auto;
    height: 42px;
    border-radius: 999px;
    padding: 9px 14px;
  }

  .theme-toggle span {
    display: inline;
  }

  .nav-overlay {
    display: none !important;
  }
}

