:root {
  --navy-950: #06152f;
  --navy-900: #0a2450;
  --navy-800: #123b78;
  --blue-700: #1759ad;
  --blue-600: #2470cf;
  --blue-100: #dceafd;
  --blue-50: #edf5ff;
  --gold-800: #805409;
  --gold-700: #9a6812;
  --gold-500: #d2a848;
  --gold-300: #efd28f;
  --cream-100: #f8f0df;
  --cream-50: #fcf7ec;
  --ink: #112344;
  --body: #30425f;
  --muted: #566781;
  --line: #b9c9df;
  --surface-blue: #e9f2ff;
  --surface-cream: #f8f0df;
  --surface-mix: #eef3f6;
  --success: #126b49;
  --danger: #a72e3a;
  --shadow-xl: 0 28px 70px rgba(6, 21, 47, .18);
  --shadow-lg: 0 20px 48px rgba(6, 21, 47, .13);
  --shadow-md: 0 12px 28px rgba(6, 21, 47, .10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 155px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 7%, rgba(36, 112, 207, .10), transparent 30%),
    radial-gradient(circle at 90% 11%, rgba(210, 168, 72, .12), transparent 28%),
    linear-gradient(145deg, #e8f1fc 0%, #f6efdf 47%, #e7f0fb 100%);
  color: var(--body);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid #f0c765; outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.section-pad { padding: 92px 0; }
.aid-icon { width: 24px; height: 24px; flex: none; }
.skip-link {
  position: fixed; top: -100px; right: 20px; z-index: 10000;
  padding: 12px 18px; border-radius: 12px;
  background: var(--cream-50); color: var(--navy-950); box-shadow: var(--shadow-lg);
  font-weight: 900;
}
.skip-link:focus { top: 16px; }

/* Shared buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 11px 24px; border: 1px solid transparent;
  border-radius: 14px; font-weight: 900; line-height: 1.4;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
  box-shadow: 0 14px 32px rgba(23, 89, 173, .26);
}
.button-primary:hover { box-shadow: 0 18px 38px rgba(23, 89, 173, .34); }
.button-outline {
  color: var(--navy-900); background: linear-gradient(145deg, #f6f9ff, #e7f0fc);
  border-color: #a9bdd8; box-shadow: 0 8px 20px rgba(6, 21, 47, .07);
}
.button-outline:hover { background: linear-gradient(145deg, #e8f2ff, #f8f0df); border-color: var(--blue-700); }
.button-light {
  color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .44);
  backdrop-filter: blur(8px);
}
.button-light:hover { background: rgba(255, 255, 255, .22); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; color: #fff; box-shadow: 0 12px 34px rgba(6, 21, 47, .25); }
.header-channels { background: linear-gradient(90deg, #05142e, #0b2c63 55%, #071a38); }
.header-channels-inner {
  min-height: 50px; display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.header-channels-inner::-webkit-scrollbar { height: 3px; }
.header-channels-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 9px; }
.header-channels a {
  min-width: max-content; display: flex; align-items: center; gap: 9px;
  padding: 6px 18px; border-left: 1px solid rgba(255, 255, 255, .14);
  color: #eaf2ff; font-size: 12px; line-height: 1.35;
}
.header-channels a:first-child { padding-right: 0; }
.header-channels a:hover strong { color: #f6d994; }
.header-channels a > span:last-child { display: flex; flex-direction: column; }
.header-channels strong { color: #fff; font-size: 12px; }
.header-channels small { color: #bfd0e8; font-size: 10px; }
.mini-brand { width: 29px; height: 29px; flex: none; }
.mini-brand svg, .mini-brand img { width: 100%; height: 100%; object-fit: contain; }
.header-phone { margin-right: auto; border-left: 0 !important; font-size: 14px !important; font-weight: 900; }
.header-phone .aid-icon { width: 19px; }
.header-main {
  background:
    linear-gradient(90deg, rgba(6,21,47,.96), rgba(18,59,120,.95)),
    url('../images/header-pattern.svg') center/cover no-repeat;
}
.header-inner {
  min-height: 88px; display: grid; grid-template-columns: 245px 1fr auto;
  align-items: center; gap: 24px; position: relative;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img, .brand .custom-logo { width: 74px; height: 68px; object-fit: contain; flex: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.brand-copy strong { color: #fff; font-size: 15px; white-space: nowrap; }
.brand-copy small { color: #c4d5eb; font-size: 10px; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: 14px; font-weight: 900; }
.primary-nav > a, .dropdown-main-link, .dropdown-toggle { color: #fff; padding: 15px 2px; white-space: nowrap; }
.primary-nav > a, .dropdown-main-link { position: relative; }
.primary-nav > a::after, .dropdown-main-link::after {
  content: ""; position: absolute; right: 0; left: 100%; bottom: 8px; height: 2px;
  background: var(--gold-500); transition: left .22s ease;
}
.primary-nav > a:hover::after, .dropdown-main-link:hover::after { left: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.dropdown-toggle { width: 30px; padding-inline: 5px; border: 0; background: none; font-size: 19px; }
.dropdown-toggle span { display: block; transition: transform .2s ease; }
.has-dropdown.open .dropdown-toggle span { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 365px; padding: 12px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  border: 1px solid #9fb5d2; border-radius: 22px; box-shadow: var(--shadow-xl);
  background:
    linear-gradient(145deg, rgba(230,240,253,.98), rgba(248,239,219,.98)),
    url('../images/services-hero-bg.webp') center/cover no-repeat;
  color: var(--ink); transition: .2s ease; overflow: hidden;
}
.dropdown-menu::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(23,89,173,.05)); pointer-events: none; }
.dropdown-menu a {
  position: relative; display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 11px;
  min-height: 50px; padding: 8px 11px; margin: 2px 0; border-radius: 13px;
  color: var(--ink); font-size: 13px; background: rgba(238,245,255,.58);
  border: 1px solid transparent;
}
.dropdown-menu a:hover { color: var(--navy-950); background: rgba(249,244,232,.94); border-color: #cfb875; }
.dropdown-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 11px; color: var(--blue-700);
  background: linear-gradient(145deg, #d6e7fc, #edf5ff); border: 1px solid #b4c9e4;
}
.dropdown-icon .aid-icon { width: 19px; }
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-radius: 14px; color: var(--navy-950); font-weight: 900;
  background: linear-gradient(135deg, #f0ce7a, #c99a37); box-shadow: 0 11px 26px rgba(210,168,72,.24);
}
.header-cta:hover { background: linear-gradient(135deg, #f6dc9c, #d5aa50); }
.header-cta .aid-icon { width: 18px; }
.mobile-header-cta, .menu-toggle, .mobile-nav-utilities { display: none; }
.menu-toggle { width: 46px; height: 46px; padding: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.08); }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; border-radius: 5px; background: #fff; transition: .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Shared page backgrounds */
.photo-page { position: relative; isolation: isolate; }
.photo-page::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    linear-gradient(145deg, rgba(230,240,252,.92), rgba(247,239,222,.91)),
    var(--page-photo) center/cover no-repeat;
  filter: saturate(.72);
}
.visual-surface { position: relative; isolation: isolate; overflow: hidden; }
.visual-surface::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background-size: cover; background-position: center; filter: blur(10px) saturate(.72); opacity: .32; transform: scale(1.04);
}
.visual-surface::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(222,235,251,.92), rgba(247,238,217,.90));
}
.visual-surface-services::before { background-image: url('../images/services-hero-bg.webp'); }
.visual-surface-installment::before { background-image: url('../images/service-doctoral-bg.webp'); }
.visual-surface-education::before { background-image: url('../images/education-hero-bg.webp'); }
.visual-surface-final::before { background-image: url('../images/project-contact-bg.webp'); }
.visual-surface-about::before { background-image: url('../images/about-hero-bg.webp'); }
.visual-surface-contact::before { background-image: url('../images/project-contact-bg.webp'); }
.visual-surface-service-detail::before { background-image: var(--page-photo); }
.soft-photo-section { position: relative; isolation: isolate; overflow: hidden; }
.soft-photo-section::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--section-photo) center/cover no-repeat; filter: saturate(.65); opacity: .28;
}
.soft-photo-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(224,237,252,.93), rgba(247,239,222,.92));
}
.dark-photo-section::before { opacity: .5; }
.dark-photo-section::after { background: linear-gradient(135deg, rgba(6,21,47,.96), rgba(18,59,120,.91)); }

/* Home hero */
.hero-section {
  position: relative; overflow: hidden; padding: 74px 0 66px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.72), transparent 31%),
    radial-gradient(circle at 91% 12%, rgba(210,168,72,.16), transparent 27%),
    linear-gradient(135deg, #e2edf9, #f5eddd 56%, #dce9f8);
}
.hero-section::after { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -240px; border-radius: 50%; background: rgba(23,89,173,.08); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: 64px; }
.hero-copy { padding: 22px 0; }
.hero-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-800); font-weight: 900; }
.hero-kicker::before, .eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 4px; background: var(--gold-500); }
.hero-copy h1 { margin: 15px 0 20px; color: var(--navy-950); font-size: clamp(39px, 4.2vw, 67px); line-height: 1.38; letter-spacing: -.9px; }
.hero-copy > p { max-width: 680px; margin: 0; color: #3f526f; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; padding-top: 23px; border-top: 1px solid #aebed3; }
.hero-trust span {
  display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 7px 11px;
  color: #3d506d; font-size: 12px; border: 1px solid #b8c8dd; border-radius: 12px;
  background: linear-gradient(145deg, rgba(238,245,255,.85), rgba(248,239,220,.72));
}
.hero-trust .aid-icon { width: 20px; color: var(--blue-700); }
.hero-trust b { color: var(--ink); }
.hero-visual { position: relative; }
.real-photo-frame { position: relative; overflow: hidden; border: 1px solid #a8bdd8; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); background: #dbe7f5; }
.real-photo-frame > img { width: 100%; min-height: 420px; aspect-ratio: 16/10; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.real-photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.photo-corner-badge {
  position: absolute; right: 19px; bottom: 19px; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 15px;
  background: rgba(6,21,47,.83); color: #fff; backdrop-filter: blur(9px); box-shadow: var(--shadow-md);
}
.photo-corner-badge .aid-icon { color: #f4d687; }
.photo-corner-badge span { display: flex; flex-direction: column; line-height: 1.5; }
.photo-corner-badge strong { font-size: 13px; }
.photo-corner-badge small { color: #d8e4f5; font-size: 10px; }

/* Headings */
.section-heading { max-width: 790px; margin: 0 0 38px; }
.section-heading > span { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-800); font-weight: 900; }
.section-heading > span::before { content: ""; width: 30px; height: 3px; border-radius: 4px; background: var(--gold-500); }
.section-heading h1, .section-heading h2 { margin: 9px 0 10px; color: var(--navy-950); font-size: clamp(30px, 3.1vw, 45px); line-height: 1.48; }
.section-heading p { margin: 0; color: #485b76; }
.blue-heading > span { color: var(--blue-700); }
.blue-heading > span::before { background: var(--blue-600); }
.section-actions { margin-top: 32px; text-align: center; }

/* Project form */
.project-section { padding: 44px 0 80px; background: linear-gradient(180deg, rgba(222,235,251,.92), rgba(247,239,222,.88)); }
.project-card {
  display: grid; grid-template-columns: .86fr 1.14fr; overflow: hidden;
  border: 1px solid #9fb5d2; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  background: linear-gradient(145deg, #e9f2ff, #f6edda);
}
.project-visual-panel { position: relative; min-height: 710px; overflow: hidden; background: linear-gradient(145deg, var(--navy-950), var(--blue-700)); }
.project-visual-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.8); }
.project-visual-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,21,47,.18), rgba(6,21,47,.92)); }
.project-panel-overlay { position: relative; z-index: 2; min-height: 710px; padding: 50px 43px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.project-panel-overlay .eyebrow { color: #f5d78e; }
.project-panel-overlay h2 { margin: 9px 0; color: #fff; font-size: 45px; }
.project-panel-overlay > p { margin: 0; color: #e4edf9; font-size: 16px; }
.project-phone {
  display: flex; align-items: center; gap: 12px; margin: 23px 0; padding: 14px;
  border: 1px solid rgba(255,255,255,.42); border-radius: 16px; background: rgba(255,255,255,.13); backdrop-filter: blur(8px);
}
.project-phone > svg, .project-phone > img { width: 45px; height: 45px; }
.project-phone span { display: flex; flex-direction: column; }
.project-phone strong { color: #fff; }
.project-phone small { color: #fff; font-size: 17px; }
.project-benefits { display: grid; gap: 9px; }
.project-benefits span { display: flex; align-items: center; gap: 9px; color: #eef4ff; }
.project-benefits .aid-icon { color: #f5d78e; }
.project-form-wrap { padding: 41px; background: linear-gradient(145deg, #e9f2ff, #f8f0df); }
.project-form-heading span { color: var(--gold-800); font-weight: 900; }
.project-form-heading h3 { margin: 5px 0 4px; color: var(--navy-950); font-size: 30px; }
.project-form-heading p { margin: 0 0 23px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; }
.form-grid label > span { color: #283b58; font-size: 13px; font-weight: 900; }
.form-grid .wide { grid-column: 1 / -1; }
.project-form input, .project-form select, .project-form textarea, .education-filter input, .education-filter select {
  width: 100%; color: var(--ink); border: 1px solid #aebfd5; border-radius: 12px;
  background: #f7faff; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.project-form input, .project-form select { height: 52px; padding: 10px 13px; }
.project-form textarea { min-height: 138px; padding: 12px 13px; resize: vertical; }
.project-form input::placeholder, .project-form textarea::placeholder, .education-filter input::placeholder { color: #75839a; opacity: 1; }
.project-form input:focus, .project-form select:focus, .project-form textarea:focus, .education-filter input:focus, .education-filter select:focus {
  border-color: var(--blue-700); background: #fff; box-shadow: 0 0 0 4px rgba(23,89,173,.13);
}
.submit-project { margin-top: 18px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.form-notice { grid-column: 1 / -1; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.form-notice.success { color: #0d5137; border: 1px solid #78b49c; background: #dcf2e8; }
.form-notice.error { color: #79202a; border: 1px solid #d49aa1; background: #f8e2e5; }
.project-direct-contact { margin-top: 28px; padding-top: 22px; border-top: 1px solid #adbed3; }
.project-direct-contact p { margin: 0 0 12px; color: #465a76; font-size: 13px; }
.project-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.project-socials a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 6px 10px;
  border: 1px solid #acbed6; border-radius: 12px; background: linear-gradient(145deg, #eef5ff, #f8f0df); color: var(--ink); font-size: 11px; font-weight: 800;
}
.project-socials svg, .project-socials img { width: 29px; height: 29px; object-fit: contain; }
.brand-logo-image { background: transparent !important; border: 0 !important; box-shadow: none !important; object-fit: contain; }

/* Trust strip */
.trust-strip { padding: 0 0 28px; background: linear-gradient(180deg, rgba(247,239,222,.88), rgba(222,235,251,.92)); }
.trust-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-strip-grid > div {
  display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 17px;
  border: 1px solid #a9bdd7; border-radius: 17px; box-shadow: var(--shadow-md);
  background: linear-gradient(145deg, #e7f1ff, #f8efdd);
}
.trust-strip-grid .aid-icon { width: 29px; color: var(--blue-700); }
.trust-strip-grid span { display: flex; flex-direction: column; line-height: 1.55; }
.trust-strip-grid strong { color: var(--ink); font-size: 14px; }
.trust-strip-grid small { color: #53657e; font-size: 11px; }

/* Service and education cards */
.service-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.photo-service-card {
  display: flex; flex-direction: column; min-height: 420px; overflow: hidden;
  border: 1px solid #9eb5d2; border-radius: 24px; box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, #e4effc, #f6edd9); transition: transform .24s ease, box-shadow .24s ease;
}
.photo-service-card:hover { transform: translateY(-7px); box-shadow: 0 28px 62px rgba(6,21,47,.18); }
.service-photo { display: block; position: relative; height: 207px; overflow: hidden; background: #d6e2f0; }
.service-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,21,47,.02) 32%, rgba(6,21,47,.8)); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.03); transition: transform .42s ease; }
.photo-service-card:hover .service-photo img { transform: scale(1.04); }
.service-photo-label {
  position: absolute; right: 15px; bottom: 13px; z-index: 2; padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.42); border-radius: 999px;
  background: rgba(6,21,47,.82); color: #fff; font-size: 12px; font-weight: 900; backdrop-filter: blur(7px);
}
.service-card-copy { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.photo-service-card h3 { margin: 0 0 8px; color: var(--navy-950); font-size: 18px; line-height: 1.72; }
.photo-service-card p { margin: 0; color: #50627d; font-size: 13px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 18px; color: #0f4e9f; font-size: 13px; font-weight: 900; }
.card-link .aid-icon { width: 18px; }

.tip-card-grid, .education-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.photo-tip-card {
  display: flex; flex-direction: column; min-height: 430px; overflow: hidden;
  border: 1px solid #9eb5d2; border-radius: 24px; box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, #e6f0fd, #f7efdc); transition: transform .22s ease, box-shadow .22s ease;
}
.photo-tip-card:hover { transform: translateY(-6px); box-shadow: 0 26px 58px rgba(6,21,47,.17); }
.tip-photo { display: block; position: relative; height: 190px; overflow: hidden; background: #d6e2f0; }
.tip-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,21,47,.02), rgba(6,21,47,.3)); }
.tip-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .42s ease; }
.photo-tip-card:hover .tip-photo img { transform: scale(1.04); }
.tip-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px 22px 23px; }
.tip-category { align-self: flex-start; padding: 5px 10px; border-radius: 999px; color: #744a05; background: #f3dda8; border: 1px solid #d6b86d; font-size: 10px; font-weight: 900; }
.tip-card h2, .tip-card h3 { margin: 11px 0 8px; color: var(--navy-950); font-size: 18px; line-height: 1.72; }
.tip-card p { margin: 0; color: #52647f; font-size: 13px; }

/* Process and installment */
.process-line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.process-line::before { content: ""; position: absolute; top: 39px; right: 8%; left: 8%; height: 2px; background: #8da9cc; }
.process-line article {
  position: relative; z-index: 1; min-height: 238px; padding: 20px; text-align: center;
  border: 1px solid #9fb6d2; border-radius: 19px; box-shadow: var(--shadow-md);
  background: linear-gradient(145deg, #e3eefc, #f7efdd);
}
.process-number { position: absolute; top: 10px; left: 10px; color: #6c4a0d; font-size: 11px; font-weight: 900; }
.process-line article > div { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid #aec1db; border-radius: 17px; background: linear-gradient(145deg, #d7e7fb, #f1dfb5); color: var(--blue-700); }
.process-line h3 { margin: 0 0 7px; color: var(--ink); font-size: 15px; }
.process-line p { margin: 0; color: #52647f; font-size: 12px; }
.installment-section {
  position: relative; color: #fff;
  background:
    linear-gradient(135deg, rgba(6,21,47,.97), rgba(18,59,120,.94)),
    url('../images/service-doctoral-bg.webp') center/cover no-repeat;
}
.installment-layout { display: grid; grid-template-columns: .76fr 1.24fr; align-items: center; gap: 52px; }
.installment-intro .eyebrow { color: #f5d78e; }
.installment-intro h2 { margin: 12px 0; color: #fff; font-size: 43px; line-height: 1.47; }
.installment-intro p { color: #dbe7f8; }
.four-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.four-steps article {
  min-height: 210px; padding: 23px; border: 1px solid rgba(255,255,255,.34); border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(84,132,202,.12)); backdrop-filter: blur(8px);
}
.step-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 16px; color: var(--navy-950); background: linear-gradient(145deg, #f0ce7a, #c99a37); }
.step-icon .aid-icon { width: 28px; }
.four-steps h3 { margin: 13px 0 6px; color: #fff; font-size: 17px; }
.four-steps p { margin: 0; color: #dce7f7; font-size: 13px; }

/* Stats and CTA */
.numbers-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 50px; }
.numbers-copy .eyebrow { color: #f4d687; }
.numbers-copy h2 { margin: 10px 0; color: #fff; font-size: 42px; line-height: 1.5; }
.numbers-copy p { color: #dbe6f6; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat-card {
  min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  border: 1px solid rgba(255,255,255,.36); border-radius: 22px; background: linear-gradient(145deg, rgba(239,246,255,.94), rgba(248,239,220,.93)); box-shadow: var(--shadow-lg);
}
.stat-card strong { color: var(--blue-700); font-size: clamp(45px, 5vw, 72px); line-height: 1.2; }
.stat-card span { color: var(--ink); font-weight: 900; }
.final-cta { padding: 55px 0 92px; }
.final-cta-card, .page-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 34px; position: relative; overflow: hidden;
  padding: 40px 44px; border: 1px solid #95abc8; border-radius: 27px; box-shadow: var(--shadow-xl);
  background:
    linear-gradient(135deg, rgba(220,234,251,.97), rgba(248,238,216,.96)),
    url('../images/project-contact-bg.webp') center/cover no-repeat;
}
.final-cta-card::after, .page-cta-card::after { content: ""; position: absolute; width: 270px; height: 270px; left: -105px; top: -125px; border-radius: 50%; background: rgba(23,89,173,.07); }
.final-cta-card > div:first-child, .page-cta-card > div:first-child, .final-cta-actions { position: relative; z-index: 1; }
.final-cta-card > div > span { color: var(--gold-800); font-weight: 900; }
.final-cta-card h2, .page-cta-card h2 { margin: 7px 0; color: var(--navy-950); font-size: 31px; }
.final-cta-card p, .page-cta-card p { margin: 0; color: #465a76; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.final-cta-card .button-light { color: var(--navy-900); border-color: #9fb5d2; background: linear-gradient(145deg, #edf5ff, #f8f0df); }

/* Inner heroes */
.inner-hero, .article-hero {
  position: relative; overflow: hidden; padding: 68px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6,21,47,.96), rgba(18,59,120,.90)),
    var(--page-photo) center/cover no-repeat;
}
.inner-hero::after, .article-hero::after { content: ""; position: absolute; width: 430px; height: 430px; left: -170px; bottom: -240px; border-radius: 50%; background: rgba(210,168,72,.13); }
.inner-hero-layout, .article-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .96fr; align-items: center; gap: 55px; }
.inner-hero-copy > span { color: #f4d687; font-weight: 900; }
.inner-hero-copy h1, .article-hero-copy h1 { margin: 10px 0 13px; color: #fff; font-size: clamp(36px, 4.1vw, 58px); line-height: 1.45; }
.inner-hero-copy > p, .article-hero-copy > p { margin: 0; color: #e0e9f7; font-size: 17px; }
.inner-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.inner-hero-visual.real-photo-frame { border-color: rgba(255,255,255,.34); }
.inner-hero-visual.real-photo-frame > img { min-height: 360px; }
.compact-inner-hero { padding: 45px 0; }
.service-hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.service-hero-badges span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.11); color: #f0f5ff; font-size: 12px; }
.service-hero-badges .aid-icon { width: 17px; color: #f4d687; }

/* Services detail and sidebars */
.content-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 28px; }
.content-main { min-width: 0; }
.content-sidebar, .article-sidebar { position: sticky; top: 160px; display: grid; gap: 17px; }
.service-detail, .side-panel, .article-content, .article-sidebar .side-cta, .about-story, .university-card, .education-filter, .empty-state, .page-prose, .error-card {
  border: 1px solid #9fb5d2; border-radius: 23px; box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #e7f1fd, #f7efdc);
}
.service-detail { padding: 30px; margin-bottom: 18px; }
.service-detail h2 { margin: 8px 0; color: var(--navy-950); font-size: 27px; }
.lead { color: #334966; font-size: 17px; }
.service-highlights { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.service-highlights span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid #a8bdd8; border-radius: 999px; background: linear-gradient(145deg, #dceafd, #f4e4bd); color: #243957; font-size: 12px; font-weight: 800; }
.service-highlights .aid-icon { width: 17px; color: var(--blue-700); }
.structured-sections { display: grid; gap: 16px; }
.structured-section { display: grid; grid-template-columns: 55px 1fr; gap: 16px; align-items: start; position: relative; overflow: hidden; border-right: 4px solid var(--blue-700); }
.structured-section:nth-child(even) { border-right-color: var(--gold-500); background: linear-gradient(145deg, #f6edd7, #e4effd); }
.structured-section::after { content: ""; position: absolute; width: 170px; height: 170px; left: -90px; top: -105px; border-radius: 50%; background: rgba(23,89,173,.06); }
.section-index { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--navy-800), var(--blue-700)); font-weight: 900; }
.structured-section h2 { margin-top: 0; font-size: 21px; }
.structured-section p { margin: 0; color: #4b5e79; }
.promise-grid, .value-grid, .field-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.promise-grid > div, .value-grid article, .field-cards article {
  min-height: 185px; padding: 21px; border: 1px solid #a6bad5; border-radius: 18px;
  background: linear-gradient(145deg, #deebfb, #f4e5c0); box-shadow: var(--shadow-md);
}
.promise-grid .aid-icon, .value-grid .aid-icon, .field-cards article > span .aid-icon { width: 31px; color: var(--blue-700); }
.promise-grid h3, .value-grid h3, .field-cards h3 { margin: 10px 0 5px; color: var(--ink); font-size: 17px; }
.promise-grid p, .value-grid p, .field-cards p { margin: 0; color: #4e617c; font-size: 13px; }
.related-services { margin: 52px 0; }
.related-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-service-grid a { display: grid; grid-template-columns: 42px 1fr 22px; align-items: center; gap: 10px; padding: 13px; border: 1px solid #9fb5d2; border-radius: 15px; background: linear-gradient(145deg, #e4effd, #f7efdd); box-shadow: var(--shadow-md); }
.related-service-grid a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-700); background: #d7e6fa; }
.related-service-grid a > .aid-icon { width: 18px; color: var(--blue-700); }
.side-panel { overflow: hidden; padding: 14px; }
.side-title { padding: 8px 8px 13px; color: var(--navy-950); font-weight: 900; }
.side-links { display: grid; }
.side-links a { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 9px 10px; border-radius: 11px; color: #354965; font-size: 13px; }
.side-links a:hover, .side-links a.active { color: var(--navy-950); background: linear-gradient(145deg, #dceafd, #f1deb0); font-weight: 900; }
.side-links .aid-icon { width: 17px; }
.side-cta { margin-top: 13px; padding: 17px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--navy-900), var(--blue-700)); }
.side-cta strong { color: #fff; }
.side-cta p { color: #dce7f7; font-size: 12px; }
.side-cta .button { width: 100%; }
.quick-contact-panel { padding: 15px; }
.quick-contact { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.quick-contact:hover { background: #dceafd; }
.quick-contact svg, .quick-contact img { width: 38px; height: 38px; }
.quick-contact span { display: flex; flex-direction: column; line-height: 1.5; }
.quick-contact strong { color: var(--ink); font-size: 12px; }
.quick-contact small { color: #52647f; font-size: 10px; }

/* Services page */
.fields-section { margin-top: 72px; }
.full-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Education */
.education-filter { display: grid; grid-template-columns: 1fr 260px auto; gap: 12px; margin-bottom: 30px; padding: 18px; }
.education-filter label { position: relative; display: flex; align-items: center; }
.education-filter label > span { position: absolute; right: 13px; z-index: 1; color: var(--blue-700); }
.education-filter label > span .aid-icon { width: 20px; }
.education-filter input, .education-filter select { height: 52px; padding: 10px 43px 10px 12px; }
.clear-filter { grid-column: 1 / -1; color: #0f4e9f; font-size: 12px; font-weight: 900; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 32px; }
.pagination .page-numbers { min-width: 41px; height: 41px; display: grid; place-items: center; padding: 0 10px; border: 1px solid #a4bad5; border-radius: 11px; color: var(--navy-900); background: linear-gradient(145deg, #e9f2ff, #f7efdd); }
.pagination .current { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.empty-state { padding: 50px; text-align: center; }
.empty-state .aid-icon { width: 45px; color: var(--blue-700); }
.empty-state h2 { color: var(--navy-950); }

/* About and contact */
.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.about-story { padding: 36px; }
.about-story h2 { margin: 9px 0; color: var(--navy-950); font-size: 39px; line-height: 1.5; }
.about-story p { color: #465a76; }
.about-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 22px; }
.about-metrics span { display: flex; flex-direction: column; align-items: center; padding: 17px; border: 1px solid #a4bad5; border-radius: 15px; background: linear-gradient(145deg, #dceafd, #f1deb0); }
.about-metrics strong { color: var(--blue-700); font-size: 34px; }
.about-metrics small { color: var(--ink); font-weight: 800; }
.about-image > img { min-height: 520px; }
.university-card { padding: 35px; }
.university-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.university-list span { display: flex; align-items: center; gap: 7px; min-height: 61px; padding: 11px; border: 1px solid #a4bad5; border-radius: 13px; background: linear-gradient(145deg, #dceafd, #f4e4bd); color: #263a58; font-size: 12px; font-weight: 800; }
.university-list .aid-icon { width: 19px; color: var(--blue-700); }
.other-centers { margin-top: 21px; padding: 19px; border-right: 4px solid var(--gold-500); border-radius: 14px; background: #e1edfb; }
.other-centers h3 { margin: 0 0 5px; color: var(--ink); }
.other-centers p { margin: 0; color: #4b5e79; }
.contact-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card-grid > a { display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 10px; min-height: 86px; padding: 14px; border: 1px solid #9fb5d2; border-radius: 16px; background: linear-gradient(145deg, #e4effd, #f7efdd); box-shadow: var(--shadow-md); }
.contact-card-grid > a:hover { transform: translateY(-3px); background: linear-gradient(145deg, #d8e8fb, #f3e2b8); }
.contact-card-grid > a > span svg, .contact-card-grid > a > span img { width: 45px; height: 45px; object-fit: contain; }
.contact-card-grid > a div { display: flex; flex-direction: column; line-height: 1.5; }
.contact-card-grid strong { color: var(--ink); font-size: 12px; }
.contact-card-grid small { color: #53657f; font-size: 10px; }
.contact-card-grid > a > .aid-icon { width: 18px; color: var(--blue-700); }
.contact-feedback { grid-column: span 2; }
.contact-page-note { margin: 18px 0 0; color: #354966; font-weight: 800; }

/* Article */
.article-hero-copy .tip-category { color: #684303; background: #f4d98f; }
.article-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 20px; color: #dce7f7; font-size: 12px; }
.article-meta span, .article-meta a { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .aid-icon { width: 18px; color: #f4d687; }
.article-content { padding: 34px; }
.prose { color: #334966; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--navy-950); line-height: 1.55; }
.prose h2 { margin-top: 34px; }
.prose a:not(.button) { color: #0f4e9f; text-decoration: underline; text-underline-offset: 3px; }
.prose li { margin-bottom: 7px; }
.prose blockquote { margin: 25px 0; padding: 17px 20px; border-right: 4px solid var(--gold-500); border-radius: 13px; background: #e0ecfa; color: #354966; }
.article-share-note { margin-top: 35px; padding: 22px; border: 1px solid #a5bad5; border-radius: 17px; background: linear-gradient(145deg, #dceafd, #f3e2b8); }
.article-share-note h2 { margin-top: 0; }
.article-sidebar .side-cta { padding: 19px; }
.page-prose { padding: 34px; }

/* Footer */
.site-footer { color: #fff; background: var(--navy-950); }
.footer-main {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6,21,47,.97), rgba(18,59,120,.93)),
    url('../images/footer-bg.webp') center/cover no-repeat;
}
.footer-grid { display: grid; grid-template-columns: 1.25fr .65fr .9fr; gap: 45px; padding: 68px 0 54px; }
.footer-logo { width: 92px; height: 78px; object-fit: contain; margin-bottom: 10px; }
.footer-grid h2 { margin: 0 0 16px; color: #fff; font-size: 18px; }
.footer-about p { color: #cbd8ea; font-size: 13px; }
.footer-feedback { display: flex; align-items: center; gap: 10px; max-width: 360px; margin-top: 18px; padding: 12px; border: 1px solid rgba(255,255,255,.27); border-radius: 14px; background: rgba(255,255,255,.09); }
.footer-feedback svg, .footer-feedback img { width: 42px; height: 42px; }
.footer-feedback span, .footer-contact a span { display: flex; flex-direction: column; line-height: 1.5; }
.footer-feedback strong, .footer-contact strong { color: #fff; font-size: 12px; }
.footer-feedback small, .footer-contact small { color: #cbd8ea; font-size: 10px; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links a { color: #d5e0f0; font-size: 13px; }
.footer-links a:hover { color: #f3d586; }
.footer-contact { display: grid; align-content: start; gap: 9px; }
.footer-contact > a { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.footer-contact > a > svg, .footer-contact > a > img { width: 38px; height: 38px; }
.footer-note { color: #cbd8ea; font-size: 11px; }
.social-consultation { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: #081d40; }
.social-consultation-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.social-consultation-inner > div:first-child { display: flex; flex-direction: column; }
.social-consultation strong { color: #fff; }
.social-consultation small { color: #bdcce2; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.08); color: #eef4ff; font-size: 10px; }
.social-links svg, .social-links img { width: 30px; height: 30px; }
.copyright { padding: 13px 0; background: #041127; }
.copyright .container { display: flex; justify-content: space-between; gap: 20px; color: #aebfd6; font-size: 10px; }

/* Floating contact and top */
.floating-contact { position: fixed; right: 18px; bottom: 18px; z-index: 1300; }
.floating-contact-button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 17px; background: linear-gradient(145deg, var(--navy-900), var(--blue-700)); color: #fff; box-shadow: 0 18px 42px rgba(6,21,47,.35); font-weight: 900; }
.contact-pulse { position: absolute; width: 10px; height: 10px; right: 5px; top: 5px; border-radius: 50%; background: #f1c966; box-shadow: 0 0 0 5px rgba(241,201,102,.18); }
.floating-contact-panel {
  position: absolute; right: 0; bottom: 69px; width: min(420px, calc(100vw - 28px)); max-height: min(690px, calc(100vh - 110px)); overflow: auto;
  padding: 16px; border: 1px solid #92aac9; border-radius: 21px; box-shadow: var(--shadow-xl);
  background: linear-gradient(155deg, #e8f2ff, #f6edd9); color: var(--body);
}
.floating-contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 4px 3px 13px; }
.floating-contact-head > div { display: flex; flex-direction: column; }
.floating-contact-head strong { color: var(--navy-950); }
.floating-contact-head small { color: #53657f; font-size: 10px; }
.contact-close { width: 34px; height: 34px; border: 1px solid #a6bad5; border-radius: 10px; background: #e0ebfa; color: var(--navy-950); font-size: 22px; }
.floating-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.floating-contact-grid > a { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 9px; min-height: 68px; padding: 9px; border: 1px solid #a5bad5; border-radius: 13px; background: linear-gradient(145deg, #edf5ff, #f2e2ba); }
.floating-contact-grid > a:hover { border-color: var(--blue-700); }
.floating-brand-icon svg, .floating-brand-icon img { width: 40px; height: 40px; }
.floating-contact-grid > a > span:last-child { display: flex; flex-direction: column; line-height: 1.45; }
.floating-contact-grid strong { color: var(--ink); font-size: 11px; }
.floating-contact-grid small { color: #566881; font-size: 9px; }
.contact-feedback-card { grid-column: 1 / -1; }
.floating-contact-note { margin: 12px 3px 0; color: #435671; font-size: 10px; }
.back-to-top { position: fixed; left: 18px; bottom: 18px; z-index: 1200; width: 53px; height: 53px; display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9); border: 1px solid #d6b660; border-radius: 17px; background: linear-gradient(145deg, var(--navy-900), var(--blue-700)); color: #f5d78e; box-shadow: 0 16px 38px rgba(6,21,47,.33); font-size: 0; transition: .22s ease; }
.back-to-top::before { content: ""; width: 13px; height: 13px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(-45deg) translate(-1px, 1px); }
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-3px); color: #fff1bf; }

/* Error */
.error-page { min-height: 62vh; display: grid; align-items: center; }
.error-card { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 35px; padding: 32px; }
.error-card img { width: 100%; border-radius: 20px; }
.error-card span { color: var(--gold-800); font-weight: 900; }
.error-card h1 { color: var(--navy-950); font-size: 42px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .58s ease, transform .58s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 210px 1fr auto; gap: 17px; }
  .primary-nav { gap: 13px; font-size: 13px; }
  .header-cta { padding: 10px 13px; }
  .service-card-grid, .full-service-grid { grid-template-columns: repeat(3, 1fr); }
  .process-line { grid-template-columns: repeat(3, 1fr); }
  .process-line::before { display: none; }
  .university-list { grid-template-columns: repeat(3, 1fr); }
  .contact-card-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-feedback { grid-column: auto; }
}

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .header-channels-inner { width: 100%; padding-inline: 12px; }
  .header-channels a:first-child { padding-right: 10px; }
  .header-phone { margin-right: 0; }
  .header-inner { min-height: 76px; grid-template-columns: 1fr auto; gap: 12px; }
  .brand img { width: 56px; height: 54px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 9px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-cta { display: none; }
  .mobile-header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 12px; border-radius: 11px; color: var(--navy-950); background: linear-gradient(135deg, #f0ce7a, #c99a37); font-size: 11px; font-weight: 900; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed; top: 128px; right: 14px; left: 14px; z-index: 1200;
    display: none; max-height: calc(100vh - 145px); overflow: auto; padding: 13px;
    border: 1px solid #8fa9ca; border-radius: 21px; box-shadow: var(--shadow-xl);
    background:
      linear-gradient(145deg, rgba(229,240,253,.99), rgba(248,238,217,.99)),
      url('../images/services-hero-bg.webp') center/cover no-repeat;
    color: var(--ink); font-size: 14px;
  }
  .primary-nav.open { display: grid; }
  .primary-nav > a, .dropdown-main-link, .dropdown-toggle { color: var(--ink); }
  .primary-nav > a { min-height: 50px; padding: 12px; border-radius: 12px; background: rgba(238,245,255,.60); }
  .primary-nav > a::after, .dropdown-main-link::after { display: none; }
  .nav-item { display: grid; grid-template-columns: 1fr 45px; border-radius: 12px; background: rgba(238,245,255,.60); }
  .dropdown-main-link { padding: 12px; }
  .dropdown-toggle { width: 45px; }
  .dropdown-menu { position: static; grid-column: 1 / -1; display: none; width: auto; opacity: 1; visibility: visible; transform: none; margin: 0 7px 9px; box-shadow: none; }
  .has-dropdown:hover .dropdown-menu { display: none; }
  .has-dropdown.open .dropdown-menu { display: grid; }
  .mobile-nav-utilities { display: block; margin-top: 8px; padding: 13px; border: 1px solid #9fb5d2; border-radius: 15px; background: linear-gradient(145deg, #dceafd, #f3e2b8); }
  .mobile-nav-title { display: block; margin-bottom: 8px; color: var(--navy-950); }
  .mobile-call { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 9px; border-radius: 11px; background: #eaf3ff; color: var(--ink); font-size: 12px; }
  .mobile-call b { color: var(--blue-700); }
  .mobile-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
  .mobile-channel-grid a { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 7px; border: 1px solid #adbed5; border-radius: 11px; background: #edf5ff; color: var(--ink); font-size: 10px; }
  .mobile-channel-grid svg, .mobile-channel-grid img { width: 30px; height: 30px; }
  .mobile-nav-project { width: 100%; margin-top: 9px; }
  .hero-grid, .inner-hero-layout, .article-hero-grid, .installment-layout, .numbers-layout, .about-layout { grid-template-columns: 1fr; }
  .hero-copy, .inner-hero-copy, .article-hero-copy, .numbers-copy { text-align: center; }
  .hero-copy > p, .inner-hero-copy > p, .article-hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust, .inner-hero-actions, .service-hero-badges, .article-meta { justify-content: center; }
  .hero-visual, .inner-hero-visual, .article-hero-image { max-width: 760px; margin-inline: auto; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual-panel, .project-panel-overlay { min-height: 500px; }
  .project-panel-overlay { padding: 36px; }
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-grid, .full-service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .tip-card-grid, .education-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout, .article-layout { grid-template-columns: 1fr; }
  .content-sidebar, .article-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .social-consultation-inner { flex-direction: column; text-align: center; }
  .contact-card-grid { grid-template-columns: repeat(2, 1fr); }
  .education-filter { grid-template-columns: 1fr 1fr auto; }
  .clear-filter { grid-column: 1 / -1; }
  .university-list { grid-template-columns: repeat(2, 1fr); }
  .error-card { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 125px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section-pad { padding: 64px 0; }
  .header-channels { display: block; }
  .header-channels-inner { min-height: 43px; }
  .header-channels a { padding: 5px 10px; }
  .header-channels a > span:last-child small { display: none; }
  .header-channels strong { font-size: 10px; }
  .mini-brand { width: 25px; height: 25px; }
  .header-phone span { font-size: 11px; }
  .header-inner { min-height: 69px; }
  .brand img { width: 48px; height: 47px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { display: none; }
  .mobile-header-cta { min-height: 39px; padding: 6px 9px; font-size: 10px; }
  .menu-toggle { width: 42px; height: 42px; }
  .primary-nav { top: 117px; max-height: calc(100vh - 132px); right: 10px; left: 10px; }
  .hero-section { padding: 46px 0 50px; }
  .hero-copy h1 { font-size: 34px; letter-spacing: -.4px; }
  .hero-copy > p { font-size: 15px; }
  .hero-trust { display: grid; text-align: right; }
  .real-photo-frame { border-radius: 22px; }
  .real-photo-frame > img { min-height: 270px; }
  .photo-corner-badge { right: 11px; bottom: 11px; padding: 8px 10px; }
  .photo-corner-badge small { display: none; }
  .project-section { padding-bottom: 58px; }
  .project-card { border-radius: 22px; }
  .project-visual-panel, .project-panel-overlay { min-height: 445px; }
  .project-panel-overlay { padding: 27px 21px; }
  .project-panel-overlay h2 { font-size: 36px; }
  .project-form-wrap { padding: 27px 19px; }
  .project-form-heading h3 { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .project-socials a span { display: none; }
  .project-socials a { padding: 5px; }
  .project-socials svg, .project-socials img { width: 34px; height: 34px; }
  .trust-strip-grid, .service-card-grid, .full-service-grid, .process-line, .four-steps, .tip-card-grid, .education-grid, .stats-grid, .promise-grid, .value-grid, .field-cards, .related-service-grid, .contact-card-grid, .university-list, .about-metrics { grid-template-columns: 1fr; }
  .service-photo { height: 198px; }
  .photo-service-card { min-height: 375px; border-radius: 21px; }
  .tip-photo { height: 185px; }
  .photo-tip-card { min-height: 405px; border-radius: 21px; }
  .process-line article { min-height: 116px; padding: 18px 78px 18px 18px; text-align: right; }
  .process-line article > div { position: absolute; right: 15px; top: 21px; width: 52px; height: 52px; margin: 0; }
  .process-number { right: auto; left: 10px; }
  .installment-intro { text-align: center; }
  .installment-intro h2 { font-size: 34px; }
  .four-steps article { min-height: auto; }
  .inner-hero, .article-hero { padding: 45px 0; }
  .inner-hero-copy h1, .article-hero-copy h1 { font-size: 33px; }
  .inner-hero-visual.real-photo-frame > img { min-height: 260px; }
  .content-sidebar, .article-sidebar { grid-template-columns: 1fr; }
  .service-detail { padding: 23px 19px; }
  .structured-section { grid-template-columns: 44px 1fr; gap: 12px; border-right-width: 3px; }
  .section-index { width: 43px; height: 43px; }
  .structured-section h2 { font-size: 19px; }
  .structured-section p { font-size: 14px; }
  .page-cta-card, .final-cta-card { display: block; padding: 27px 21px; text-align: center; }
  .page-cta-card .button, .final-cta-card .button { margin-top: 16px; }
  .final-cta-actions { justify-content: center; }
  .education-filter { grid-template-columns: 1fr; padding: 14px; }
  .about-story { padding: 25px 21px; }
  .about-story h2 { font-size: 32px; }
  .about-image > img { min-height: 320px; }
  .university-card { padding: 24px 18px; }
  .contact-card-grid > a { grid-template-columns: 47px 1fr 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 33px; padding-top: 54px; }
  .footer-about { grid-column: auto; }
  .social-links { justify-content: center; }
  .social-links a span { display: none; }
  .social-links a { padding: 6px; }
  .social-links svg, .social-links img { width: 33px; height: 33px; }
  .copyright .container { display: grid; text-align: center; }
  .floating-contact { right: 11px; bottom: 12px; }
  .floating-contact-button { width: 54px; height: 54px; justify-content: center; padding: 0; border-radius: 16px; }
  .floating-contact-button > span:last-child { display: none; }
  .floating-contact-panel { position: fixed; right: 10px; left: 10px; bottom: 76px; width: auto; max-height: calc(100vh - 95px); }
  .floating-contact-grid { grid-template-columns: 1fr; }
  .contact-feedback-card { grid-column: auto; }
  .back-to-top { left: 11px; bottom: 12px; width: 51px; height: 51px; border-radius: 16px; }
  .article-content, .page-prose { padding: 23px 19px; }
  .error-card { padding: 22px; }
  .error-card h1 { font-size: 31px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 22px); }
  .header-channels a { padding-inline: 8px; }
  .brand-copy strong { font-size: 10px; }
  .mobile-header-cta { padding-inline: 8px; }
  .hero-copy h1 { font-size: 29px; }
  .hero-actions .button { width: 100%; }
  .section-heading h2 { font-size: 27px; }
  .project-panel-overlay > p { font-size: 14px; }
  .inner-hero-copy h1, .article-hero-copy h1 { font-size: 28px; }
  .button { padding-inline: 17px; }
  .mobile-channel-grid { grid-template-columns: 1fr; }
  .photo-service-card h3, .photo-tip-card h2, .photo-tip-card h3 { font-size: 17px; }
  .photo-service-card p, .photo-tip-card p { font-size: 12px; }
  .floating-contact-panel { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   AidenDesk Pro v9 — visual consistency, contrast and mobile QA
   ========================================================= */
:root {
  --navy-950: #071a35;
  --navy-900: #0c2a59;
  --navy-800: #123f82;
  --blue-700: #185caf;
  --blue-600: #2a75cf;
  --gold-800: #80570d;
  --gold-700: #9a6b17;
  --gold-500: #d6ad50;
  --ink: #102444;
  --body: #2f425f;
  --muted: #53657f;
  --line: #a9bdd7;
}

/* Progressive enhancement: content stays visible even if JavaScript fails. */
html:not(.js) [data-reveal],
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal] { opacity: 0; transform: translateY(18px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Consistent non-white surfaces */
.visual-surface-services::before { background-image: url('../images/services-page-bg.webp'); }
.visual-surface-services-page::before { background-image: url('../images/services-content-bg.webp'); }
.visual-surface-home-education::before { background-image: url('../images/home-education-bg.webp'); }
.visual-surface-education-list::before { background-image: url('../images/education-list-bg.webp'); }
.visual-surface-home-final::before { background-image: url('../images/final-cta-bg.webp'); }
.visual-surface-about::before { background-image: url('../images/about-content-bg.webp'); }
.visual-surface-universities::before { background-image: url('../images/universities-bg.webp'); }
.visual-surface-contact-page::before { background-image: url('../images/contact-bg.webp'); }
.visual-surface-article::before { background-image: url('../images/article-section-bg.webp'); }
.visual-surface-service-content::before { background-image: url('../images/service-content-bg.webp'); }

.visual-surface::after {
  background: linear-gradient(135deg, rgba(222,235,251,.94), rgba(247,238,217,.93));
}

/* Dropdown and mobile drawer have a designed background rather than a flat white panel. */
.dropdown-menu {
  background-image:
    linear-gradient(145deg, rgba(229,240,253,.985), rgba(248,238,217,.985)),
    url('../images/services-menu-bg.webp');
  background-position: center;
  background-size: cover;
}
.dropdown-menu a {
  background-color: rgba(232,242,255,.82);
  backdrop-filter: blur(10px);
}

/* Stronger contrast across light cards and banners. */
.section-heading p,
.photo-service-card p,
.tip-card p,
.process-line p,
.final-cta-card p,
.page-cta-card p,
.project-direct-contact p,
.about-story p,
.service-detail p,
.page-prose p,
.article-content p { color: #344b6c; }

.photo-service-card,
.photo-tip-card,
.process-line article,
.trust-strip-grid > div,
.service-detail,
.side-panel,
.education-filter,
.university-card,
.about-story,
.value-grid article,
.contact-card-grid > a,
.page-cta-card,
.final-cta-card {
  background: linear-gradient(150deg, rgba(231,241,254,.98), rgba(248,239,220,.97));
  border-color: #9db4d1;
}

/* Dark installment section: all text remains readable. */
.installment-section {
  background: transparent;
  color: #fff;
}
.installment-section::before { opacity: .62; filter: saturate(.7) contrast(1.02); }
.installment-section::after { background: linear-gradient(135deg, rgba(6,21,47,.97), rgba(18,59,120,.93)); }
.installment-intro .eyebrow { color: #f5d78e; }
.installment-intro h2,
.four-steps h3 { color: #fff; }
.installment-intro p,
.four-steps p { color: #dce8f8; }
.four-steps article {
  background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(74,123,194,.15));
  border-color: rgba(255,255,255,.38);
}

/* Final CTA: dark text on a light, textured surface. */
.final-cta-card {
  background:
    linear-gradient(135deg, rgba(225,238,253,.97), rgba(248,239,220,.96)),
    url('../images/final-cta-bg.webp') center/cover no-repeat;
}
.final-cta-card .button-outline { background: linear-gradient(145deg, #edf5ff, #f8f0df); }

/* Unique photo-based field panel. */
.soft-photo-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #9db4d1;
  border-radius: 27px;
  box-shadow: var(--shadow-lg);
}
.soft-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--card-photo) center/cover no-repeat;
  filter: blur(10px) saturate(.68);
  transform: scale(1.04);
}
.soft-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(224,237,252,.95), rgba(247,239,222,.94));
}

/* Avoid unreadable white-on-light combinations. */
.button-light {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.45);
}
.visual-surface:not(.dark-photo-section) .button-light,
.final-cta-card .button-light,
.page-cta-card .button-light {
  color: var(--navy-900);
  background: linear-gradient(145deg, #edf5ff, #f8f0df);
  border-color: #9fb5d2;
}

/* Better card balance and scanability. */
.photo-service-card { min-height: 408px; }
.service-photo { height: 215px; }
.photo-tip-card { min-height: 420px; }
.tip-photo { height: 200px; }
.service-card-copy,
.tip-card-body { padding: 22px; }
.photo-service-card h3,
.tip-card h2,
.tip-card h3 { color: var(--navy-950); }
.card-link { color: #0c4d9f; }

/* Mobile drawer: every communication option stays accessible. */
.mobile-channel-grid a { min-width: 0; }
.mobile-channel-grid a span { overflow-wrap: anywhere; }

/* Back-to-top redesigned to match the palette. */
.back-to-top {
  color: #f8dc95;
  background: linear-gradient(145deg, #0b2a59, #1556a7);
  border: 1px solid #d2a848;
  box-shadow: 0 15px 35px rgba(6,21,47,.32);
}
.back-to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg) translate(-1px,1px);
}
.back-to-top { font-size: 0; }

@media (max-width: 980px) {
  .primary-nav {
    top: 126px;
    background-image:
      linear-gradient(145deg, rgba(229,240,253,.985), rgba(248,238,217,.985)),
      url('../images/services-menu-bg.webp');
    background-position: center;
    background-size: cover;
    right: 12px;
    left: 12px;
    max-height: calc(100dvh - 140px);
  }
  .primary-nav > a,
  .primary-nav .nav-item {
    background-color: rgba(232,242,255,.86);
    backdrop-filter: blur(10px);
  }
  .mobile-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-channel-grid a { font-size: 11px; }
  .hero-grid,
  .inner-hero-layout,
  .article-hero-grid { gap: 34px; }
}

@media (max-width: 700px) {
  body { font-size: 15px; line-height: 1.9; }
  .header-channels-inner { scroll-snap-type: x proximity; }
  .header-channels a { scroll-snap-align: start; }
  .primary-nav { top: 112px; max-height: calc(100dvh - 124px); }
  .mobile-channel-grid { grid-template-columns: 1fr 1fr; }
  .mobile-channel-grid a { min-height: 52px; padding: 8px; }
  .mobile-channel-grid svg,
  .mobile-channel-grid img { width: 32px; height: 32px; }
  .soft-photo-card { padding: 24px 18px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h1,
  .section-heading h2 { line-height: 1.55; }
  .photo-service-card,
  .photo-tip-card { min-height: 0; }
  .service-photo { height: 205px; }
  .tip-photo { height: 195px; }
  .final-cta-card h2,
  .page-cta-card h2 { font-size: 26px; }
  .final-cta-actions .button { width: 100%; }
  .project-form input,
  .project-form select { height: 55px; }
  .project-form textarea { min-height: 155px; }
  .content-sidebar,
  .article-sidebar { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .mobile-channel-grid { grid-template-columns: 1fr; }
  .brand { gap: 7px; }
  .brand-copy strong { max-width: 122px; white-space: normal; line-height: 1.5; }
  .hero-copy h1 { font-size: 28px; }
}

/* =========================================================
   AidenDesk Pro v10 — mobile-first stability pass
   ========================================================= */

.mobile-nav-head { display: none; }

/* Prevent long Persian titles, URLs and controls from forcing horizontal scroll. */
main,
.site-header,
.site-footer,
section,
article,
.container,
.header-inner,
.hero-grid,
.project-card,
.content-layout,
.article-layout,
.footer-grid { max-width: 100%; }

.header-inner > *,
.hero-grid > *,
.project-card > *,
.content-layout > *,
.article-layout > *,
.footer-grid > *,
.service-card-grid > *,
.tip-card-grid > *,
.education-grid > *,
.process-line > *,
.four-steps > *,
.stats-grid > *,
.contact-card-grid > * { min-width: 0; }

h1, h2, h3, h4,
.hero-copy p,
.inner-hero-copy p,
.article-hero-copy p,
.project-panel-overlay p,
.service-card-copy p,
.tip-card-body p,
.page-prose p,
.article-content p,
.service-detail p,
.footer-main p { overflow-wrap: break-word; word-break: normal; }

.project-form input,
.project-form select,
.project-form textarea,
.education-filter input,
.education-filter select { max-width: 100%; }

.article-content img,
.page-prose img,
.service-detail img,
.article-content iframe,
.page-prose iframe,
.service-detail iframe,
.article-content video,
.page-prose video,
.service-detail video { max-width: 100%; }

.article-content table,
.page-prose table,
.service-detail table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.article-content pre,
.page-prose pre,
.service-detail pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  html { scroll-padding-top: 128px; }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1490;
    background: rgba(3, 14, 32, .66);
    backdrop-filter: blur(4px);
  }

  .site-header { z-index: 1500; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-actions { position: relative; z-index: 1510; flex: none; }

  /* True off-canvas menu: no dependence on a hard-coded header height. */
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1600;
    display: grid;
    align-content: start;
    gap: 8px;
    width: min(92vw, 430px);
    height: 100dvh;
    max-height: none;
    padding:
      max(16px, env(safe-area-inset-top))
      15px
      max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-left: 1px solid #8fa9ca;
    border-radius: 0 0 0 26px;
    box-shadow: -24px 0 70px rgba(3, 14, 32, .34);
    background-image:
      linear-gradient(150deg, rgba(229,240,253,.992), rgba(248,238,217,.992)),
      url('../images/services-menu-bg.webp');
    background-position: center;
    background-size: cover;
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform .26s ease, opacity .2s ease, visibility .2s ease;
  }

  .primary-nav.open {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-nav-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px -1px 6px;
    padding: 8px 4px 13px;
    border-bottom: 1px solid #a8bad2;
    background: linear-gradient(180deg, rgba(234,243,255,.98), rgba(234,243,255,.92));
    backdrop-filter: blur(12px);
  }

  .mobile-nav-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
  .mobile-nav-brand img { width: 48px; height: 43px; object-fit: contain; flex: none; }
  .mobile-nav-brand > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
  .mobile-nav-brand strong { color: var(--navy-950); font-size: 14px; }
  .mobile-nav-brand small { color: #53657f; font-size: 10px; }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #9fb3cd;
    border-radius: 13px;
    background: linear-gradient(145deg, #eef5ff, #f4e6c6);
    color: var(--navy-950);
    font-size: 28px;
    line-height: 1;
  }

  .primary-nav > a,
  .primary-nav .nav-item {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(145, 169, 200, .72);
    background: rgba(232,242,255,.88);
    box-shadow: 0 7px 18px rgba(6,21,47,.055);
    backdrop-filter: blur(10px);
  }

  .primary-nav > a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
  }

  .nav-item { grid-template-columns: minmax(0, 1fr) 48px; overflow: visible; }
  .dropdown-main-link { display: flex; align-items: center; min-width: 0; padding: 11px 14px; }
  .dropdown-toggle { width: 48px; min-height: 50px; }
  .dropdown-menu {
    max-height: none;
    margin: 0 7px 9px;
    padding: 8px;
    border-radius: 15px;
  }
  .dropdown-menu a { min-height: 48px; grid-template-columns: 38px minmax(0, 1fr); font-size: 12px; }

  .mobile-nav-utilities {
    margin-top: 4px;
    padding: 13px;
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(220,234,253,.96), rgba(245,230,193,.96));
  }
  .mobile-call { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .mobile-call b { white-space: nowrap; }
  .mobile-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-channel-grid a { min-width: 0; min-height: 54px; font-size: 11px; line-height: 1.55; }
  .mobile-channel-grid a span { min-width: 0; overflow-wrap: break-word; }

  .hero-grid,
  .inner-hero-layout,
  .article-hero-grid,
  .installment-layout,
  .numbers-layout,
  .about-layout { gap: 34px; }

  .hero-copy,
  .inner-hero-copy,
  .article-hero-copy,
  .numbers-copy { min-width: 0; }

  .project-visual-panel,
  .project-panel-overlay { min-height: 470px; }

  .floating-contact-panel {
    max-height: calc(100dvh - 105px);
    overscroll-behavior: contain;
  }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 116px; }
  body { font-size: 15px; line-height: 1.85; }
  .container { width: calc(100% - 24px); }
  .section-pad { padding: 54px 0; }

  /* Communication strip remains present and swipeable on phones. */
  .header-channels-inner {
    min-height: 42px;
    width: 100%;
    padding-inline: 8px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x mandatory;
  }
  .header-channels a {
    min-height: 42px;
    padding: 5px 9px;
    scroll-snap-align: start;
  }
  .header-channels a:first-child { padding-right: 9px; }
  .header-channels strong { font-size: 10px; }
  .header-channels small { display: none; }
  .mini-brand { width: 24px; height: 24px; }
  .header-phone { font-size: 11px !important; }

  .header-inner { min-height: 67px; gap: 7px; }
  .brand { gap: 7px; }
  .brand img { width: 46px; height: 44px; }
  .brand-copy strong { font-size: 11px; white-space: normal; line-height: 1.45; }
  .brand-copy small { display: none; }
  .header-actions { gap: 6px; }
  .mobile-header-cta { min-height: 40px; padding: 6px 10px; font-size: 10px; white-space: nowrap; }
  .menu-toggle { width: 42px; height: 42px; flex: none; }

  .primary-nav { width: min(94vw, 410px); border-radius: 0 0 0 22px; }

  .hero-section { padding: 38px 0 44px; }
  .hero-grid { gap: 27px; }
  .hero-copy h1 { font-size: clamp(29px, 8.5vw, 36px); line-height: 1.55; }
  .hero-copy > p { font-size: 15px; line-height: 1.95; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-actions .button { width: 100%; min-width: 0; padding-inline: 13px; }
  .hero-trust { width: 100%; gap: 8px; }
  .hero-trust span { min-width: 0; overflow-wrap: break-word; }

  .real-photo-frame > img,
  .inner-hero-visual.real-photo-frame > img,
  .article-hero-image img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .project-section { padding: 28px 0 54px; }
  .project-card { border-radius: 22px; }
  .project-visual-panel,
  .project-panel-overlay { min-height: 370px; }
  .project-panel-overlay { padding: 28px 21px; }
  .project-panel-overlay h2 { font-size: 34px; }
  .project-phone { margin: 17px 0; padding: 11px; }
  .project-phone > svg,
  .project-phone > img { width: 39px; height: 39px; }
  .project-benefits { gap: 7px; }
  .project-form-wrap { padding: 26px 18px; }
  .project-form-heading h3 { font-size: 25px; line-height: 1.55; }
  .project-form input,
  .project-form select,
  .project-form textarea,
  .education-filter input,
  .education-filter select { font-size: 16px; }
  .submit-project { width: 100%; }

  /* Keep messenger names visible instead of showing unexplained icons only. */
  .project-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-socials a { width: 100%; min-height: 50px; padding: 7px 9px; }
  .project-socials a span { display: inline; min-width: 0; overflow-wrap: break-word; }
  .project-socials svg,
  .project-socials img { width: 32px; height: 32px; }

  .section-heading { margin-bottom: 27px; }
  .section-heading h1,
  .section-heading h2 { font-size: clamp(27px, 7.8vw, 34px); line-height: 1.55; }
  .section-heading > span { font-size: 13px; }
  .section-heading p { font-size: 14px; }

  .trust-strip-grid > div { min-height: 82px; padding: 14px; }
  .service-photo,
  .tip-photo { height: auto; aspect-ratio: 16 / 9; }
  .photo-service-card,
  .photo-tip-card { min-height: 0; }
  .service-card-copy,
  .tip-card-body { padding: 19px; }

  .process-line article {
    min-height: 110px;
    padding: 17px 72px 17px 16px;
  }

  .installment-intro h2,
  .numbers-copy h2 { font-size: clamp(29px, 8vw, 36px); }
  .four-steps article { min-height: 0; padding: 20px; }
  .stat-card { min-height: 150px; }

  .inner-hero,
  .article-hero { padding: 40px 0; }
  .inner-hero-copy h1,
  .article-hero-copy h1 { font-size: clamp(28px, 8vw, 35px); line-height: 1.55; }
  .inner-hero-actions { display: grid; grid-template-columns: 1fr; }
  .inner-hero-actions .button { width: 100%; }

  .service-detail,
  .article-content,
  .page-prose { padding: 22px 17px; border-radius: 20px; }
  .structured-section { grid-template-columns: 42px minmax(0, 1fr); padding: 17px 14px; }
  .structured-section h2 { font-size: 18px; line-height: 1.65; }

  .page-cta-card,
  .final-cta-card { padding: 25px 18px; border-radius: 22px; }
  .final-cta-card h2,
  .page-cta-card h2 { font-size: 25px; line-height: 1.6; }
  .final-cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .final-cta-actions .button,
  .page-cta-card .button { width: 100%; margin-top: 0; }

  .about-image > img { min-height: 0; aspect-ratio: 4 / 3; }
  .about-story { padding: 23px 18px; }
  .about-story h2 { font-size: 29px; }

  .contact-card-grid > a { min-height: 78px; grid-template-columns: 43px minmax(0, 1fr) 18px; }
  .contact-card-grid > a span { min-width: 0; }

  .footer-grid { gap: 29px; padding-top: 48px; }
  .footer-about,
  .footer-links,
  .footer-contact { text-align: right; }
  .footer-feedback { max-width: none; }
  .social-consultation-inner { align-items: stretch; }
  .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .social-links a { justify-content: flex-start; min-height: 48px; padding: 7px 9px; }
  .social-links a span { display: inline; min-width: 0; overflow-wrap: break-word; }
  .copyright .container { gap: 5px; }

  .floating-contact {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .floating-contact-panel {
    right: max(9px, env(safe-area-inset-right));
    left: max(9px, env(safe-area-inset-left));
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 92px - env(safe-area-inset-top));
    padding: 13px;
    border-radius: 19px;
  }
  .floating-contact-grid { grid-template-columns: 1fr; }
  .floating-contact-grid > a { min-height: 62px; }
  .back-to-top {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 20px); }
  .header-inner { min-height: 64px; }
  .brand-copy strong { max-width: 118px; }
  .mobile-header-cta { padding-inline: 8px; }

  .primary-nav { width: 96vw; padding-inline: 12px; }
  .mobile-channel-grid { grid-template-columns: 1fr; }
  .mobile-call { grid-template-columns: 25px minmax(0, 1fr); }
  .mobile-call b { grid-column: 1 / -1; justify-self: start; padding-right: 33px; }

  .hero-actions { grid-template-columns: 1fr; }
  .project-socials,
  .social-links { grid-template-columns: 1fr; }

  .photo-corner-badge { max-width: calc(100% - 20px); }
  .photo-corner-badge span { min-width: 0; }

  .floating-contact-head strong { font-size: 13px; }
}

@media (max-width: 360px) {
  .brand-copy { display: none; }
  .mobile-header-cta { font-size: 9px; }
  .header-actions { gap: 4px; }
  .primary-nav { width: 100vw; border-radius: 0; }
  .hero-copy h1 { font-size: 27px; }
  .button { min-height: 50px; padding-inline: 14px; }
}

@media (max-width: 980px) and (max-height: 540px) and (orientation: landscape) {
  .header-channels { display: none; }
  .header-inner { min-height: 58px; }
  .brand img { width: 43px; height: 41px; }
  .primary-nav { width: min(82vw, 500px); }
  .mobile-nav-head { padding-bottom: 8px; }
}


/* Student feedback gallery */
.visual-surface-feedback::before { background-image: url('../images/numbers-bg.webp'); }
.feedback-section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.feedback-gallery-shell { position: relative; }
.feedback-track-wrap { overflow: hidden; }
.feedback-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 30%);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(21,87,176,.45) rgba(255,255,255,.34);
}
.feedback-track::-webkit-scrollbar { height: 10px; }
.feedback-track::-webkit-scrollbar-thumb { background: rgba(21,87,176,.45); border-radius: 999px; }
.feedback-track::-webkit-scrollbar-track { background: rgba(255,255,255,.34); border-radius: 999px; }
.feedback-slide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #b8cbe3;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(233,243,255,.94), rgba(247,239,222,.94));
  box-shadow: var(--shadow-md);
  text-align: right;
  scroll-snap-align: start;
}
.feedback-slide:hover { transform: translateY(-3px); }
.feedback-slide-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid #d5e2f4;
}
.feedback-slide-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: 14px;
}
.feedback-slide-meta { color: var(--ink); font-size: 13px; font-weight: 800; }
.feedback-nav {
  position: absolute;
  top: calc(50% - 34px);
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #9db6d3;
  border-radius: 50%;
  background: rgba(255,255,255,.93);
  color: var(--blue-700);
  box-shadow: 0 16px 38px rgba(6,21,47,.17);
}
.feedback-nav .aid-icon,
.feedback-lightbox-nav .aid-icon { width: 24px; height: 24px; }
.feedback-nav-prev { right: -12px; }
.feedback-nav-next { left: -12px; transform: rotate(180deg); }
.feedback-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
}
.feedback-lightbox[hidden] { display: none; }
.feedback-lightbox-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3,14,32,.78);
  backdrop-filter: blur(4px);
}
.feedback-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 24px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.feedback-lightbox-figure {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.feedback-lightbox-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255,255,255,.95);
}
.feedback-lightbox-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}
.feedback-lightbox-close,
.feedback-lightbox-nav {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(10,28,56,.8);
  color: #fff;
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
}
.feedback-lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-size: 34px;
  line-height: 1;
}
.feedback-lightbox-prev { justify-self: end; }
.feedback-lightbox-next { justify-self: start; transform: rotate(180deg); }
body.feedback-lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .feedback-track { grid-auto-columns: minmax(250px, 44%); }
  .feedback-slide-image { min-height: 360px; }
  .feedback-nav-prev { right: -4px; }
  .feedback-nav-next { left: -4px; }
}

@media (max-width: 700px) {
  .feedback-section-actions { display: grid; grid-template-columns: 1fr; }
  .feedback-section-actions .button { width: 100%; }
  .feedback-track { grid-auto-columns: minmax(240px, 82%); }
  .feedback-slide { padding: 10px; border-radius: 18px; }
  .feedback-slide-image { min-height: 280px; padding: 8px; }
  .feedback-nav {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: -6px;
  }
  .feedback-nav-prev { right: auto; left: 58px; }
  .feedback-nav-next { left: 8px; }
  .feedback-lightbox-dialog {
    width: calc(100vw - 14px);
    padding: 58px 0 14px;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: center;
  }
  .feedback-lightbox-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
  }
  .feedback-lightbox-nav {
    width: 48px;
    height: 48px;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 2;
  }
  .feedback-lightbox-prev { right: 68px; }
  .feedback-lightbox-next { right: 12px; left: auto; }
  .feedback-lightbox-figure { padding: 10px; border-radius: 18px; }
  .feedback-lightbox-figure img { max-height: calc(100vh - 170px); }
  .feedback-lightbox-figure figcaption { font-size: 13px; }
}


/* v12 content cleanup and simplified contact presentation */
.contact-card-grid > a div,
.floating-contact-grid > a > span:last-child,
.footer-contact a span { justify-content: center; }
.contact-card-grid > a div:has(small),
.floating-contact-grid > a > span:last-child:has(small) { justify-content: flex-start; }
.contact-card-grid strong,
.floating-contact-grid strong,
.footer-contact strong { line-height: 1.7; }
.contact-card-grid small,
.floating-contact-grid small { margin-top: 2px; }
.service-card-copy .card-link { color: var(--blue-700); }


/* =========================================================
   AidenDesk v13 mobile stability layer
   Prevents horizontal page expansion and rebuilds the mobile
   navigation as a true fixed drawer that never pushes content.
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
.site-header,
.header-channels,
.header-main,
main,
.site-footer,
.footer-main,
.social-consultation,
.copyright {
  max-width: 100%;
}

main,
.site-footer,
.site-header {
  position: relative;
  right: auto;
  left: auto;
  transform: none;
}

.container,
.header-inner,
.header-channels-inner,
.hero-grid,
.project-card,
.feedback-gallery-shell {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body.nav-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
  }

  body.nav-open main,
  body.nav-open .site-footer,
  body.nav-open .site-header,
  body.nav-open .header-main,
  body.nav-open .header-channels {
    transform: none !important;
    margin: 0 !important;
  }

  .site-header {
    width: 100%;
    max-width: 100%;
  }

  .header-channels-inner {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }

  .header-channels-inner > a {
    flex: 0 0 auto;
  }

  .header-inner {
    width: min(var(--container), calc(100% - 24px));
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand,
  .brand-copy,
  .header-actions {
    min-width: 0;
  }

  /* Closed drawer is removed from layout and from the root scroll area. */
  .primary-nav,
  .primary-nav:not(.open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
  }

  /* Open drawer is fixed to the right and never alters page width. */
  .primary-nav.open {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 2200 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: min(90%, 420px) !important;
    max-width: 420px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      max(18px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    border: 0 !important;
    border-left: 1px solid #9eb3cf !important;
    border-radius: 0 0 0 24px !important;
    background:
      linear-gradient(150deg, rgba(232,242,255,.995), rgba(250,241,221,.995)),
      url('../images/services-menu-bg.webp') center / cover no-repeat !important;
    box-shadow: -24px 0 70px rgba(3,14,32,.34) !important;
    color: var(--ink) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(3,14,32,.62);
    backdrop-filter: blur(3px);
  }

  .mobile-nav-head {
    position: sticky;
    top: 0;
    z-index: 5;
    flex: 0 0 auto;
    margin: -2px 0 4px;
    padding: 8px 4px 12px;
    background: linear-gradient(180deg, rgba(238,246,255,.99), rgba(238,246,255,.94));
  }

  .primary-nav > a,
  .primary-nav .nav-item,
  .mobile-nav-utilities {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .primary-nav > a,
  .primary-nav .nav-item {
    border-radius: 13px !important;
    overflow: hidden !important;
  }

  .nav-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }

  .dropdown-main-link,
  .dropdown-toggle {
    min-width: 0 !important;
  }

  .dropdown-menu {
    position: static !important;
    grid-column: 1 / -1 !important;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    margin: 0 6px 8px !important;
    padding: 7px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .has-dropdown:not(.open) .dropdown-menu,
  .has-dropdown:hover:not(.open) .dropdown-menu {
    display: none !important;
  }

  .has-dropdown.open .dropdown-menu {
    display: grid !important;
  }

  .dropdown-menu a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .dropdown-menu a > span:last-child,
  .mobile-channel-grid a span,
  .mobile-call span,
  .mobile-nav-brand > span {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }

  .mobile-nav-utilities {
    padding: 12px !important;
    overflow: hidden !important;
  }

  .mobile-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-channel-grid a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .floating-contact-panel {
    max-width: calc(100vw - 18px) !important;
  }

  img,
  iframe,
  video,
  canvas,
  svg,
  input,
  select,
  textarea,
  table {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .primary-nav.open {
    width: min(94%, 390px) !important;
    max-width: 94% !important;
    border-radius: 0 0 0 20px !important;
  }

  .mobile-channel-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 360px) {
  .primary-nav.open {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
}


/* =========================================================
   AidenDesk v14 — persistent header and reliable mobile drawer
   ========================================================= */
html,
body {
  overflow-x: clip !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 3000 !important;
  transform: none !important;
}

body.admin-bar .site-header { top: 32px !important; }

#project-form,
#student-feedback,
#contact,
[id] { scroll-margin-top: 160px; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px !important; }

  /* The dark layer stays below the sticky header and drawer. */
  body.nav-open::before {
    z-index: 3100 !important;
  }

  body.nav-open .site-header {
    z-index: 3200 !important;
  }

  /* Keep the button above the header while the drawer is open. */
  .menu-toggle {
    position: relative;
    z-index: 3250 !important;
  }

  /* Closed menu is fully removed and cannot affect page width. */
  .primary-nav,
  .primary-nav:not(.open) {
    display: none !important;
    position: fixed !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Open menu sits above the dark overlay. */
  .primary-nav.open {
    display: flex !important;
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 3300 !important;
    width: min(90vw, 420px) !important;
    height: 100dvh !important;
    max-width: 420px !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .primary-nav.open .mobile-nav-head {
    z-index: 2 !important;
  }

  #project-form,
  #student-feedback,
  #contact,
  [id] { scroll-margin-top: 122px; }
}

@media (max-width: 480px) {
  .primary-nav.open {
    width: min(94vw, 390px) !important;
    max-width: 94vw !important;
  }
}

@media (max-width: 360px) {
  .primary-nav.open {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}


/* =========================================================
   AidenDesk v15 — compact mobile menu without phone block
   ========================================================= */
@media (max-width: 980px) {
  .mobile-nav-utilities {
    padding: 10px !important;
    margin-top: 2px !important;
    border-radius: 15px !important;
  }

  .mobile-nav-title {
    margin: 0 2px 8px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .mobile-channel-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 0 !important;
  }

  .mobile-channel-grid a {
    min-height: 48px !important;
    padding: 7px 8px !important;
    gap: 7px !important;
    border-radius: 11px !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  .mobile-channel-grid svg,
  .mobile-channel-grid img {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }

  .mobile-nav-project {
    min-height: 48px !important;
    margin-top: 8px !important;
  }
}

@media (max-width: 480px) {
  .mobile-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-channel-grid a {
    min-height: 46px !important;
    padding: 6px 7px !important;
    font-size: 10px !important;
  }

  .mobile-channel-grid svg,
  .mobile-channel-grid img {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
  }
}

@media (max-width: 340px) {
  .mobile-channel-grid {
    grid-template-columns: 1fr !important;
  }
}


/* AidenDesk Pro v16: compact mobile navigation */
@media (max-width: 980px) {
  .primary-nav .mobile-nav-utilities { display: none !important; }
  .mobile-nav-project-standalone {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    flex: none;
  }
  .primary-nav {
    align-content: start;
  }
  .primary-nav.open {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 700px) {
  .primary-nav.open {
    gap: 10px;
  }
  .primary-nav > a,
  .primary-nav .nav-item {
    flex: none;
  }
}
