@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&family=Inter:wght@400;600;700;800&display=swap');

:root {
  --accent: #1a64f0;
  --accent-dark: #0f3d9b;
  --text: #0f172a;
  --muted: #444;
  --panel: #f4f6fb;
  --card: #ffffff;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: #fafafa;
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}
body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 5;
}

body.lang-en {
  font-family: 'Inter', 'Vazirmatn', system-ui, -apple-system, sans-serif;
  direction: ltr;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none; /* مهم: stacking context را بعد از انیمیشن حذف می‌کند */
  }
}


a {
  text-decoration: none;
  color: inherit;
}
a:visited,
a:active {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 700px;
  padding: 24px 64px 42px;
  background: linear-gradient(180deg, rgba(7, 14, 32, 0.65), rgba(7, 14, 32, 0.75)),
    url('aksasli.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  animation: heroFade 0.35s ease-out both;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 40%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 35%),
              radial-gradient(circle at 80% 70%, rgba(26, 100, 240, 0.14), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
  z-index: 4;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #4f8afa;
  background: linear-gradient(135deg, #4f8afa, #3b6ee8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 4px;
}

.menu-toggle:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-card {
  width: auto;
  flex: 0 0 72%;
}

.slider-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 6px;
  direction: rtl;
}

.nav-links a {
  color: #f5f7ff;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  flex-shrink: 0;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  order: -1;
}

.lang-control {
  flex-shrink: 0;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 78px;
  height: 36px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b64ff, #3e8bff);
  border: 0;
  box-shadow: 0 12px 22px rgba(8, 48, 120, 0.25);
  cursor: pointer;
  color: #f4f8ff;
}
.lang-en .lang-toggle {
  background: linear-gradient(135deg, #d7dbe3, #b9c0cc);
  box-shadow: 0 10px 18px rgba(68, 78, 94, 0.22);
}
.lang-pill {
  position: absolute;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #1a64f0;
  border: 1px solid rgba(26, 100, 240, 0.2);
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(10, 64, 160, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lang-pill.active {
  opacity: 1;
  pointer-events: auto;
}

.lang-pill[data-lang="fa"] {
  right: 4px;
}

.lang-pill[data-lang="en"] {
  left: 4px;
}

.floating-support {
  position: fixed;
  bottom: 18px;
  right: 18px;
  transform: translateY(0);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 30px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid #e5e7eb;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.wa-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #0cb960);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(12, 185, 96, 0.35);
}

.wa-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.floating-support .label {
  white-space: nowrap;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.brand-name {
  letter-spacing: -0.02em;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-top: 60px;
  padding: 0 12px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-center h1 {
  font-size: clamp(42px, 5vw, 70px);
  margin: 0 0 22px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.secondary-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  padding: 14px 40px;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(120deg, #4f8afa, #1a64f0);
  color: #f7faff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  background: linear-gradient(120deg, #6aa1ff, #2b6ff3);
  border-color: rgba(255, 255, 255, 0.95);
}

.primary-btn {
  border: none;
  padding: 15px 42px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #4f8afa 0%, #e0e2e7 100%);
  color: #0b1229;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  background: linear-gradient(90deg, #5c96ff 0%, #d5d9df 100%);
}

.hero-tiles {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  border: none;
  margin: 0 auto 0;
  max-width: 1020px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  background: none;
  border: none;
  box-shadow: none;
  min-width: 160px;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tile-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.tile-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-tile span[data-i18n^="tile-"] {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-size: 16px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 18px 80px;
  animation: fadeUp 0.6s ease-out both;
}

.section {
  margin-top: 70px;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-line {
  width: 100%;
  height: 1px;
  background: #2f2f2f;
  margin: 0 auto;
  max-width: 860px;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  margin-top: 40px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 60px;
  align-items: center;
}

.service-row.reverse .service-copy { order: 2; }
.service-row.reverse .service-media { order: 1; }

.service-copy {
  text-align: right;
  font-size: 20px;
  line-height: 1.7;
}

.service-copy h3 {
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 800;
}

.service-copy p {
  margin: 0;
  color: #3d3d3d;
  font-weight: 600;
}

.service-points {
  list-style: disc;
  padding-inline-start: 18px;
  padding-inline-end: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.service-points li::before { content: none; }

.micro-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-top: 10px;
  border-radius: 12px;
  background: linear-gradient(120deg, #5f9bff, #7fd0ff);
  color: #0b1229;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #dbe7ff;
  box-shadow: 0 10px 22px rgba(26, 100, 240, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.micro-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(26, 100, 240, 0.26);
  background: linear-gradient(120deg, #6aa6ff, #9ad9ff);
}

.micro-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(26, 100, 240, 0.2);
}

.service-media {
  display: flex;
  justify-content: center;
}

.service-media img {
  width: min(78vw, 380px);
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

body.lang-en .service-copy {
  text-align: left;
}

body.lang-en .service-points {
  padding-inline-start: 22px;
  padding-inline-end: 0;
  text-align: left;
}

.projects h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 22px;
}

.reveal {
  --reveal-duration: 600ms;
  --reveal-ease: ease-out;
  --reveal-translate-y: 30px;
  --reveal-translate-x: 40px;
  --reveal-translate-bottom: 40px;
  opacity: 0;
  transform: translateY(var(--reveal-translate-y));
  transition: opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}

.project-card.reveal {
  transition: opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    box-shadow 0.25s ease;
}

.reveal.from-left {
  transform: translateX(calc(-1 * var(--reveal-translate-x)));
}

.reveal.from-right {
  transform: translateX(var(--reveal-translate-x));
}

.reveal.from-bottom {
  transform: translateY(var(--reveal-translate-bottom)) scale(0.96);
}

.reveal.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.services .service-row:nth-child(1) {
  transition-delay: 0ms;
}

.services .service-row:nth-child(2) {
  transition-delay: 120ms;
}

.services .service-row:nth-child(3) {
  transition-delay: 240ms;
}

@media (max-width: 768px) {
  .reveal {
    --reveal-duration: 420ms;
    --reveal-translate-y: 15px;
    --reveal-translate-x: 20px;
    --reveal-translate-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.show {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-card.reveal {
    transition: box-shadow 0.25s ease;
  }
}

.slider {
  position: relative;
  background: transparent;
  padding: 0 6px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  --slider-btn-size: 40px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.slider-dot.active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: scale(1.2);
}

.slider-dot:focus-visible {
  outline: 2px solid rgba(26, 100, 240, 0.35);
  outline-offset: 3px;
}

.slider-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 6px 6px;
  direction: rtl;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.slider-inner::-webkit-scrollbar {
  display: none;
}

.slider-inner.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  width: auto;
  flex: 0 0 72%;
  color: inherit;
  direction: rtl;
  transition: box-shadow 0.25s ease;
  scroll-snap-align: start;
}

.project-card:hover h4 {
  color: var(--accent-dark);
}

.project-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

body.lang-en .project-card {
  direction: ltr;
}

body.lang-en .project-body {
  text-align: left;
}

body.lang-en .slider-inner {
  direction: ltr;
}


.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: #f6f7fb;
  padding: 0;
}

.project-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.project-body h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.project-body p {
  margin: 0;
  color: #3b3b3b;
  line-height: 1.6;
}

.project-meta {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #2f2f2f;
}

.project-meta li {
  display: block;
}

.project-meta strong {
  color: #0f172a;
  font-weight: 800;
  min-width: 52px;
  margin-inline-end: 4px;
}

.project-meta span {
  display: block;
  margin-top: 2px;
}

.micro-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  align-self: stretch;
  justify-content: center;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.micro-cta-link::after {
content: '→';
  font-size: 16px;
  line-height: 1;
}

.micro-cta-link:hover {
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  direction: ltr;
  unicode-bidi: isolate;
  padding: 8px 12px;
  background: #eef2ff;
  color: var(--accent-dark);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #d7def9;
  width: fit-content;
  box-shadow: 0 6px 12px rgba(26, 100, 240, 0.1);
}

@media (min-width: 1024px) {
  .slider {
    gap: 10px;
  }

  .project-card {
    flex: 0 0 calc((100% - 48px) / 2.2);
  }
}

.slider-btn {
  width: var(--slider-btn-size);
  height: var(--slider-btn-size);
  border-radius: 50%;
  border: 1px solid #d7deea;
  background: #ffffff;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-inline: 2px;
}

.slider-btn:hover {
  color: var(--accent);
}

.slider-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.cta {
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
  padding: 20px 0;
}

.cta-card {
  width: 100%;
  max-width: 1100px;
  background: #f5f7fb;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 32px 30px;
  border: 1px solid #e2e6ee;
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
}

.cta-card p {
  margin: 0 0 18px;
  color: #3d3d3d;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.process {
  background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
  border-radius: 18px;
  padding: 26px 22px 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e6ee;
}

.process h2 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.process-step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  animation: fadeUp 0.6s ease-out both;
}

.process-step .step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

.process-step p {
  margin: 0;
  color: #2f2f2f;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 600;
}

.process-step:nth-child(1) { animation-delay: 0.02s; }
.process-step:nth-child(2) { animation-delay: 0.06s; }
.process-step:nth-child(3) { animation-delay: 0.1s; }
.process-step:nth-child(4) { animation-delay: 0.14s; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid #cfd3dc;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.contact-strip {
  margin-top: 40px;
  padding: 34px 26px;
  background: linear-gradient(135deg, #eef2fb, #f6f8ff);
  border-top: 1px solid #d9e1f3;
}

.contact-top {
  text-align: center;
  margin-bottom: 18px;
}

.contact-top h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: #0f1b32;
}

.contact-sub {
  margin: 0;
  color: #4b5567;
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid #dbe3f2;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.contact-item {
  text-align: center;
  padding: 12px 8px;
  color: #0f1b32;
}

.cta-btn.primary {
  background: linear-gradient(90deg, #5f9afc, #dfe4f1);
  border-color: #d3dbf5;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  color: #3d3d3d;
  font-size: 14px;
  margin-top: 4px;
}

.contact-info span {
  background: #fff;
  border: 1px solid #d8dce5;
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-label {
  font-weight: 700;
}

.contact-number {
  direction: ltr;
  unicode-bidi: bidi-override;
  font-weight: 700;
}

#copy-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #f9fafb;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

#copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  text-align: center;
  padding: 26px 18px 40px;
  color: #3b3b3b;
  font-size: 14px;
  background: #f5f7fb;
}

@media (max-width: 1024px) {
  .hero {
    padding: 20px 28px 32px;
    min-height: 720px;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-center {
    margin-top: 40px;
  }

  .hero-tiles {
    flex-wrap: wrap;
  }

}

@media (max-width: 900px) {
  .top-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    width: 100%;
    padding: 0 8px;
  }

  .nav-links {
    display: none !important;
    position: fixed;
    top: 76px;
    right: 12px;
    left: auto;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    border: 1px solid #d7deea;
    backdrop-filter: none;
    z-index: 9;
    max-width: 360px;
    width: calc(100% - 36px);
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 12px;
    color: #0f172a;
    border: 1px solid #dce3ef;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.05);
  }

  .nav-links a:hover {
    background: #f3f6ff;
  }

  .lang-control {
    width: auto;
    display: flex;
    justify-content: center;
    z-index: 11;
    order: 2;
  }

  .brand {
    justify-content: flex-start;
    flex: 1;
    order: 1;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: center;
    position: relative;
    z-index: 11;
    order: 3;
  }

  .service-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-media img {
    width: min(88vw, 320px);
  }
}

@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
}


@media (max-width: 640px) {
  .hero {
    padding: 12px 12px 22px;
    min-height: 600px;
  }

  .hero-center h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero-tiles {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 6px;
    padding: 0 6px;
  }

  .hero-tile {
    width: 100%;
    min-width: auto;
    padding: 14px 16px;
  }

  .services {
    gap: 56px;
  }

  .project-img { height: 200px; object-fit: cover; }

  .cta-actions {
    flex-direction: column;
  }
}


/* ?????? � ???? ????? ??? */

/* ==== FINAL CONTACT STYLES ==== */

.pre-contact {
  margin: 90px auto 50px;
  padding: 28px 18px;
  text-align: center;
  background: #f7f9fd;
  border-radius: 18px;
  border: 1px solid #e2e6ee;
}

.pre-contact-text {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
  color: #2f2f2f;
}

.pre-contact-actions {
  display: flex;
  justify-content: center;
}

.pre-contact-btn {
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #d8dce5;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.contact-summary {
  margin-top: 30px;
  margin-bottom: 40px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #d8dce5;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f6ff;
  border: 1px solid #e0e6f5;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: #1a64f0;
}

.telegram-icon svg {
  fill: #229ED9;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.contact-value {
  font-weight: 600;
  font-size: 14px;
  color: #3b4354;
  direction: ltr;
}
/* FINAL FIX — ensure nav is above backdrop on mobile */
@media (max-width: 900px) {
  body.menu-open .top-nav {
    position: relative;
    z-index: 1006;
  }

  body.menu-open .nav-links {
    position: fixed;
    z-index: 1007;
  }
}
