/* ==========================================================
   CAJO website theme - Arabic, right-to-left (dir="rtl" on <html>)
   Use inset-inline-start/end and margin-inline-* instead of left/right.
   Colours, fonts and spacing are set once here in :root -
   change them in one place and the whole site follows.
   ========================================================== */
:root {
  /* Palette B - CAJO red and navy */
  --primary: #d7484e;       /* logo red: buttons, highlights, icons */
  --primary-dark: #b03239;  /* hover states */
  --ink: #14213d;           /* headings */
  --text: #2f3a4f;          /* body text */
  --muted: #6b7588;         /* small labels, captions */
  --light-bg: #f3f5f9;      /* light section backgrounds */
  --dark: #14213d;          /* dark sections */
  --darker: #0e1830;        /* footer */
  --on-dark: #b7c0d1;       /* text on dark backgrounds */
  --white: #fff;
  --line: #e2e6ee;

  /* Cairo - Arabic font (same as finearts.capu.edu.eg); also covers Latin */
  --font-head: "Cairo", sans-serif;
  --font-body: "Cairo", sans-serif;

  --radius: 8px;
  --section-pad: 96px;
  --container: 1200px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* safety: nothing may make the page wider than the screen */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .25s; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: var(--section-pad) 0; }
.bg-light { background: var(--light-bg); }
.bg-dark { background: var(--dark); color: var(--on-dark); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.text-accent { color: var(--primary); }
.nowrap { white-space: nowrap; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid-2.gap-sm { gap: 16px; }
.align-center { align-items: center; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: normal; /* spacing breaks Arabic letter joining */
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--white); color: var(--white); border-radius: 24px; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

.link-arrow { color: var(--primary); font-weight: 600; font-size: .95rem; }
.link-arrow i { font-size: .8em; margin-inline-start: 6px; transition: transform .25s; }
.link-arrow:hover i { transform: translateX(-4px); }
.link-arrow.light { color: var(--white); }

/* ---------- Image placeholders (replace with real <img> later) ---------- */
.img-placeholder {
  width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dfe4ed, #c3cbd9);
  color: rgba(255, 255, 255, .8);
  font-size: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; border-radius: 0; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo { width: 72px; height: auto; animation: breathe 1.6s infinite ease-in-out; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.preloader-line { width: 40px; height: 2px; background: var(--primary); margin-top: 14px; animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 50% { width: 80px; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background .35s, padding .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(255, 255, 255, .96); padding: 14px 0; box-shadow: 0 2px 20px rgba(0, 0, 0, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand-logo { height: 46px; width: auto; transition: height .35s; }
.nav.scrolled .brand-logo { height: 38px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; color: var(--white); }
.nav.scrolled .brand-name { color: var(--ink); }
.brand.light .brand-name { color: var(--white); }
.brand-sub { font-size: .6rem; letter-spacing: .4em; color: var(--white); margin-top: 6px; }
.nav.scrolled .brand-sub { color: var(--ink); }
.brand.light .brand-sub { color: var(--on-dark); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--white); font-size: .92rem; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--primary); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--primary) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero slider ----------
   The track is laid out left-to-right on purpose (direction: ltr) so slides
   physically move from right to left; each slide's text is back to RTL. */
.hero {
  position: relative;
  height: 100vh; min-height: 560px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  direction: ltr;
}
.hero-track { display: flex; height: 100%; transition: transform .9s var(--ease); }
.hero-track.no-anim, .hero-track.no-anim .hero-content > * { transition: none; }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; direction: rtl; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14,24,48,.85) 0%, rgba(14,24,48,.55) 45%, rgba(14,24,48,.15) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; padding-inline: 88px; }
.hero-title { color: var(--white); font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.3; max-width: 700px; margin-bottom: 24px; }
.hero-lead { font-size: 1.15rem; max-width: 560px; color: rgba(255, 255, 255, .88); margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slide text rises in when its slide becomes active */
.hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-slide.active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.active .hero-content > :nth-child(2) { transition-delay: .15s; }
.hero-slide.active .hero-content > :nth-child(3) { transition-delay: .3s; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 1.1rem; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 1.4rem; animation: bob 2s infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 10px); } }

/* ---------- About ---------- */
.about-media { position: relative; }
.about-img { width: 100%; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-lead { font-size: 1.1rem; color: var(--ink); }
.about-pillars { display: grid; gap: 16px; margin: 28px 0; }
.pillar {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px; background: var(--light-bg);
  border-radius: 0; border-inline-start: 3px solid var(--primary);
}
.pillar-icon {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--primary); font-size: 1.15rem;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 4px; }
.pillar p { margin: 0; }
.founder { display: flex; flex-direction: column; padding-inline-start: 22px; border-inline-start: 3px solid var(--ink); }
.founder-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.founder-role { font-size: .9rem; color: var(--muted); }
.founder-links { display: flex; gap: 10px; margin-top: 14px; }
.founder-links a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); font-size: 1rem;
  transition: background .3s, border-color .3s, color .3s;
}
.founder-links a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.founder-links svg { width: 17px; height: 17px; }

.about-badge {
  position: absolute; inset-inline-end: -24px; bottom: 40px;
  background: var(--primary); color: var(--white);
  padding: 24px 28px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.badge-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.badge-text { font-size: .85rem; line-height: 1.3; }

.stats { display: flex; gap: 40px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat-num, .stat-plus { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-value { display: inline-block; }
.stat-label { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Services ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-bottom-color: var(--primary); }
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--light-bg); color: var(--primary); font-size: 1.5rem;
  margin-bottom: 24px; transition: .35s;
}
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }
.service-card h3 { font-size: 1.35rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; }
.service-card .link-arrow { margin-top: auto; }

/* ---------- Portfolio ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  background: none; border: 1px solid var(--line); border-radius: 24px;
  padding: 8px 22px; font-family: var(--font-body); font-size: .85rem; font-weight: 500;
  letter-spacing: normal; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: .3s;
}
.filter:hover, .filter.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.portfolio-item .img-placeholder { transition: transform .6s var(--ease); }
.portfolio-item:hover .img-placeholder { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(0deg, rgba(14,24,48,.85) 0%, rgba(14,24,48,0) 60%);
  opacity: 0; transition: opacity .4s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.portfolio-overlay span { color: var(--primary); font-size: .85rem; margin-bottom: 10px; }
.portfolio-item.hide { display: none; }

/* ---------- Process ---------- */
.step { position: relative; padding: 32px 24px; border-top: 2px solid rgba(255, 255, 255, .1); transition: border-color .35s; }
.step:hover { border-top-color: var(--primary); }
.step-num { display: block; font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--primary); opacity: .85; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }

/* ---------- Testimonials ---------- */
/* Carousel - right-to-left: card 1 starts on the right, later cards come in from the left */
.t-carousel { --per-view: 3; --gap: 24px; position: relative; padding-inline: 64px; }
.t-viewport { overflow: hidden; padding: 8px 0 16px; }
.t-track { display: flex; gap: var(--gap); transition: transform .7s var(--ease); }
.t-track.no-anim { transition: none; }
.t-track > .testimonial { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width: 0; display: flex; flex-direction: column; }
.testimonial figcaption { margin-top: auto; }
.t-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer; font-size: 1rem;
  transition: background .3s, border-color .3s, color .3s;
}
.t-arrow:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.t-prev { left: 0; }
.t-next { right: 0; }

.testimonial {
  margin: 0; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 22px; position: relative; transition: box-shadow .35s;
}
.testimonial:hover { box-shadow: var(--shadow); }
.testimonial::before {
  content: "\201D"; position: absolute; top: 4px; inset-inline-end: 24px;
  font-family: var(--font-head); font-size: 6rem; color: var(--light-bg); line-height: 1;
}
.stars { color: var(--primary); font-size: .85rem; margin-bottom: 16px; }
.testimonial blockquote { margin: 0 0 24px; font-style: italic; color: var(--text); position: relative; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--light-bg); color: var(--primary); display: grid; place-items: center; }
img.avatar { object-fit: cover; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.testimonial strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.testimonial a.client-link:hover strong { color: var(--primary); }
.testimonial a.client-link { display: block; }
.testimonial a.client-link strong { display: inline; }
.testimonial a.client-link i { margin-inline-start: 6px; }
.testimonial a.client-link i { color: #0a66c2; font-size: 1.05rem; } /* LinkedIn blue */
.testimonial a.client-link i.ext { color: var(--primary); font-size: .8rem; } /* other websites */
.testimonial a.client-link strong .nowrap { display: inline; font-size: inherit; color: inherit; }
/* Name with more than one profile link (e.g. Udemy + LinkedIn) */
.client-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.client-name a.client-link { display: inline; }
.testimonial a.extra-link { color: #0a66c2; font-size: 1.05rem; line-height: 1; }
.testimonial a.extra-link:hover { opacity: .75; }
.testimonial a.extra-link .udemy-icon { width: 15px; height: 15px; color: #a435f0; display: block; }
.testimonial a.client-link .udemy-icon { width: 15px; height: 15px; color: #a435f0; vertical-align: -2px; margin-inline-end: 6px; } /* Udemy purple */
.testimonial figcaption span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ---------- Blog ---------- */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-body { padding: 28px; }
.post-meta { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.tag { background: var(--light-bg); color: var(--primary-dark); padding: 2px 12px; border-radius: 12px; font-weight: 500; }
.post-card h3 { font-size: 1.3rem; }

/* ---------- Contact ---------- */
.grid-contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
.grid-contact.form-only { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }   /* contact details moved to the footer icons */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(215, 72, 78, .18);
}
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: var(--primary-dark); }
.contact-form .invalid { border-color: var(--primary); }
.contact-form button[disabled] { opacity: .65; cursor: wait; }
.hp {   /* spam trap: invisible and takes no space (pushing it off-screen caused a sideways scroll in RTL) */
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 !important; opacity: 0; pointer-events: none;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-item { display: flex; gap: 18px; }
.info-item > i {
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--primary); font-size: 1.1rem;
}
.info-item h4 { font-size: 1.1rem; margin-bottom: 4px; }
.info-item p { margin: 0; font-size: .95rem; }
.info-item a:hover { color: var(--primary); }
.info-link { align-items: center; }
.info-link p { text-align: start; }
.info-link:hover p { color: var(--primary); }
.info-link:hover > i { background: var(--primary); color: var(--white); }
.info-item > i { transition: background .3s, color .3s; }

/* ---------- Footer ---------- */
.footer { background: var(--darker); color: var(--on-dark); padding-top: 80px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer .brand { margin-bottom: 20px; }
.footer h5 { color: var(--white); font-size: 1.15rem; margin-bottom: 20px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--primary); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .15); transition: .3s;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.newsletter { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05);
  color: var(--white); font-family: var(--font-body);
}
.newsletter input:focus { outline: none; border-color: var(--primary); }
.newsletter .btn { padding: 12px 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem;
  padding-inline-end: 70px; /* keep clear of the back-to-top button */
}

/* ---------- Back to top ---------- */
#toTop {
  position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .35s;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { background: var(--primary-dark); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --section-pad: 72px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-badge { inset-inline-end: 16px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: min(300px, 80vw);
    flex-direction: column; gap: 0; padding: 90px 32px 32px;
    background: var(--white); box-shadow: 10px 0 40px rgba(0, 0, 0, .15);
    transform: translateX(-100%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; color: var(--ink); }
  .nav-links a::after { display: none; }
  .nav-toggle { position: relative; z-index: 2; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 991px) {
  .t-carousel { --per-view: 2; }
}
@media (max-width: 600px) {
  :root { --section-pad: 56px; }
  .t-carousel { --per-view: 1; padding-inline: 0; padding-bottom: 64px; }
  .t-arrow { top: auto; bottom: 0; transform: none; }
  .t-prev { left: calc(50% - 56px); }
  .t-next { right: calc(50% - 56px); }
  .hero-content { padding-inline: 16px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(14,24,48,.85) 0%, rgba(14,24,48,.6) 55%, rgba(14,24,48,.35) 100%); }
  .hero-arrow { top: auto; bottom: 22px; transform: none; width: 44px; height: 44px; }
  .hero-prev { left: 16px; }
  .hero-next { right: 16px; }
  .grid-3, .grid-4, .grid-2.gap-sm, .footer-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .stats { gap: 24px; }
  .about-badge { padding: 16px 20px; bottom: 20px; }
  .badge-num { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; }
}