:root {
  --color-accent: #0064d0;
  --color-dark: #2c2c2c;
  --color-text: #1e1e1e;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --card-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 30px;
  height: 25px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.logo-img {
  height: 38px;
  width: auto;
}

/* ---------- Desktop nav (hidden on mobile) ---------- */

.desktop-nav {
  display: none;
}

/* ---------- Hamburger button ---------- */

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle img {
  width: 26px;
  height: 26px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile nav overlay ---------- */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(78vw, 320px);
  background: var(--color-dark);
  color: #ffffff;
  z-index: 50;
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-logo {
  align-self: flex-start;
  height: 34px;
  width: auto;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mobile-nav-links > a {
  text-decoration: none;
  color: #fff;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav-group a.sub {
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding-left: 1.3rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-text);
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.mobile-nav-links .lang-toggle {
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.mobile-nav-links .lang-toggle:hover {
  border-color: #fff;
  color: #fff;
}

.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
}

.mobile-nav-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.mobile-nav-contact svg,
.mobile-nav-contact img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.mobile-nav-contact a {
  text-decoration: none;
}

.mobile-nav-social {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.mobile-nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mobile-nav-social a:has(svg) {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-social svg {
  width: 18px;
  height: 18px;
}

.mobile-nav-social img {
  width: 35px;
  height: 35px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 220px;
  max-height: 600px;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Services ---------- */

.services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.services h2 {
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.services h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-accent);
}

.services-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.service-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 34vw;
  max-width: 140px;
  border: 0.5px solid var(--color-accent);
  border-radius: 10px;
  padding: 1.5rem 0.75rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  background: #fff;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: width 0.3s ease, max-width 0.3s ease, padding 0.3s ease, flex-grow 0.3s ease;
}

.service-card--active {
  width: 55vw;
  max-width: 200px;
  padding: 1.25rem 1rem;
  justify-content: flex-start;
  cursor: default;
}

.service-icon {
  width: 59px;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3,
.service-card .service-link {
  display: none;
}

.service-card--active h3 {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.service-card--active .service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 100, 208, 0.4);
  border: 0.5px solid rgba(0, 100, 208, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
}

.service-arrow {
  width: 8px;
  height: 7px;
}

/* ---------- About hero ---------- */

.about-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero-content h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.about-hero-content h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--color-accent);
}

.about-hero-content p {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 22rem;
}

.about-hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: clamp(160px, 34vw, 480px);
  object-fit: cover;
  opacity: 0.2;
}

/* ---------- About tabs ---------- */

.about-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  max-width: 900px;
  margin: 0 auto 1.75rem;
}

.tab-panel {
  max-width: 900px;
  margin: 0 auto;
}

.tab-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: rgba(0, 100, 208, 0.08);
  border: 1px solid rgba(0, 100, 208, 0.18);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn.active {
  background: var(--color-accent);
  border-color: rgba(0, 100, 208, 0.4);
  color: #fff;
}

.tab-panel p {
  display: none;
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.tab-panel p.active {
  display: block;
}

/* ---------- Products ---------- */

.products-hero {
  position: relative;
  overflow: hidden;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.products-intro {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

.products-intro h1 {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
}

.products-intro h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-accent);
}

.products-list {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-loading,
.content-empty,
.content-error {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  padding: 2rem 1rem;
}

.content-error {
  color: #a02323;
}

.product-card {
  max-width: 820px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.product-card--active {
  border-color: var(--color-accent);
}

.product-card-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.product-card-head:hover {
  background: #fafafa;
}

.product-card-head:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.product-icon {
  flex-shrink: 0;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  margin-top: 0.1rem;
  color: var(--color-muted);
  transition: color 0.25s ease;
}

.product-card--active .product-icon {
  color: var(--color-accent);
}

.product-card-head h3 {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.product-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.product-card--active .product-card-body {
  max-height: 700px;
}

.product-card-body-inner {
  padding: 0 1.25rem 1.25rem;
}

.product-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.product-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-card-body p + ul {
  margin-top: 0.5rem;
}

.product-card li {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ---------- Timeline (project lists) ---------- */

.timeline-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.timeline-section h1 {
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.timeline-section h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-accent);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 1.7rem;
  bottom: -0.3rem;
  width: 1px;
  background: var(--color-border);
}

.timeline-marker {
  width: 70px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  text-align: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(0, 100, 208, 0.15);
}

.timeline.reveal-ready .timeline-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline.reveal-ready .timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card {
  flex: 1;
  max-width: 340px;
  border: 1.5px solid var(--color-accent);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.timeline-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.timeline-card-thumb svg,
.timeline-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.thumb-badge svg {
  width: 16px;
  height: 14px;
}

.thumb-badge span {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timeline-card-body {
  padding: 0.85rem 1rem 1rem;
}

.timeline-card-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-card-body p {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ---------- Contact ---------- */

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.contact-section h1 {
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.contact-section h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-accent);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  background: #e8e8e8;
  border: none;
  padding: 1rem 1.25rem;
}

.contact-form input {
  border-radius: 999px;
}

.contact-form textarea {
  border-radius: 20px;
  min-height: 220px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #96999e;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  background: #fff;
}

.contact-success {
  display: none;
  border: 1.5px solid var(--color-accent);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  background: #eef5fc;
}

.contact-success.visible {
  display: block;
}

.contact-error {
  display: none;
  border: 1.5px solid #d64545;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  background: #fdeeee;
  color: #a02323;
}

.contact-error.visible {
  display: block;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-submit {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-dark);
  border: none;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  cursor: pointer;
}

.contact-submit:hover {
  background: #000;
}

/* ---------- Why us ---------- */

.why-us {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 3.5rem 1.25rem;
}

.why-us-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}

.why-us-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.why-us h2 {
  font-size: 1.75rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.why-us h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-accent);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}

.why-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
}

.why-item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.75rem;
  height: 2px;
  background: var(--color-accent);
}

.why-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ---------- Projects ---------- */

.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.projects h2 {
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.projects h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--color-accent);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-card {
  border: 0.5px solid var(--color-accent);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

.project-thumb {
  aspect-ratio: 293 / 161;
  overflow: hidden;
}

.project-thumb svg,
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.project-body p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.25rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.75rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav-sub {
  padding-left: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-brand .logo-img {
  height: 56px;
  opacity: 0.4;
  filter: grayscale(1);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-contact a {
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

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

.footer-social img {
  width: 35px;
  height: 35px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.footer-to-top {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-to-top:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-to-top svg {
  width: 16px;
  height: 16px;
}

/* ============ Tablet ============ */

@media (min-width: 640px) {
  .service-card {
    width: 28vw;
  }

  .service-card--active {
    width: 45vw;
  }
}

/* ============ Desktop ============ */

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav-backdrop {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .desktop-nav a {
    text-decoration: none;
  }

  .desktop-nav a:hover {
    color: var(--color-accent);
  }

  .desktop-nav a[aria-current="page"] {
    color: var(--color-accent);
  }

  .nav-dropdown-wrap {
    position: relative;
  }

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: inherit;
    cursor: pointer;
  }

  .nav-dropdown-toggle svg {
    width: 10px;
    height: 7px;
    transition: transform 0.2s ease;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle.active,
  .nav-dropdown-toggle[aria-expanded="true"] {
    color: var(--color-accent);
  }

  .nav-dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 1.1rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    z-index: 60;
  }

  .nav-dropdown.open {
    display: flex;
  }

  .nav-dropdown a {
    padding: 0.65rem 0.8rem;
    border-radius: 7px;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a[aria-current="page"] {
    background: #f2f6fc;
    color: var(--color-accent);
  }

  .logo-img {
    height: 48px;
  }

  .services-track {
    overflow-x: visible;
    margin: 0;
    padding: 0;
    justify-content: center;
  }

  .service-card {
    width: auto;
    max-width: none;
    flex: 1 1 0;
    padding: 1.75rem 1.25rem;
  }

  .service-card--active {
    flex: 1.35 1 0;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr) auto;
  }

  .footer-brand {
    justify-content: flex-end;
  }

  .why-us {
    padding: 5.5rem 1.25rem;
  }

  .why-us h2 {
    font-size: 2.25rem;
  }

  .why-item h3 {
    font-size: 1.2rem;
  }

  .why-item p {
    font-size: 1rem;
  }

  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
  }

  .projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero {
    padding: 4rem 2.5rem;
  }

  .about-hero-content h1 {
    font-size: 2.4rem;
  }

  .about-hero-content p {
    font-size: 1rem;
    max-width: 56rem;
  }

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

  .timeline-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .timeline {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    align-items: start;
    gap: 0;
    padding-bottom: 3.5rem;
  }

  .timeline-item:not(:last-child)::before {
    content: none;
  }

  .timeline-marker {
    grid-column: 2;
    width: auto;
  }

  .timeline-card {
    grid-column: 1;
    justify-self: end;
    max-width: 380px;
    margin-right: 2.5rem;
  }

  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 3;
    justify-self: start;
    margin-right: 0;
    margin-left: 2.5rem;
  }
}
