.home {
  --home-navy: #142e49;
  --home-teal: #116a63;
  --home-cream: #f6f6f1;
  --home-gold: #e7ce94;
  background: var(--home-cream);
}
.home-wrap, .home .top-inner { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.home .top-inner {
  min-height: 78px; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; direction: ltr;
}
.home-brand { justify-self: start; max-width: 100%; }
.header-phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: .2em; }
.home-language { justify-self: end; }
.home-account-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.register-button { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; min-height: 39px; padding-inline: 12px; }

.home-intro { position: relative; overflow: hidden; color: white; background: #142f49; }
.home-intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 80%, #24757090, transparent 57%), linear-gradient(114deg, #102a43, #17374e 52%, #1a4c50);
}
[dir="rtl"] .home-intro::before { transform: scaleX(-1); }
.intro-inner { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 322px; padding-block: 49px; }
.intro-copy { max-width: min(71%, 735px); }
.intro-copy h1 {
  font-family: "Noto Serif Armenian", Sylfaen, Georgia, serif;
  font-size: clamp(2.25rem, 4.8vw, 4.2rem); line-height: 1.12;
  margin: 0 0 16px; font-weight: 700; letter-spacing: -.035em; text-wrap: balance;
}
[lang="fa"] .intro-copy h1 { font-family: Tahoma, "Segoe UI", sans-serif; line-height: 1.3; letter-spacing: normal; }
.intro-copy p { max-width: 59ch; margin: 0; color: #e1edf1; font-size: clamp(1rem, 1.65vw, 1.15rem); }
.intro-art { position: absolute; inset-inline-end: -8px; top: 0; bottom: 0; width: min(34%, 350px); display: grid; place-items: center; pointer-events: none; z-index: -1; }
.art-orbit { position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid #9ed7d148; border-radius: 50%; }
.art-orbit-inner { width: 74%; border-style: dashed; transform: rotate(-14deg); }
.art-orbit::after {
  content: ""; width: 8px; height: 8px; position: absolute; top: 13%; right: 13%;
  border-radius: 50%; background: var(--home-gold); box-shadow: 0 0 16px #ffdf9c9c;
}
.art-orbit-inner::after { top: auto; right: auto; left: 6%; bottom: 20%; background: #b3e6d7; }
.art-document {
  position: relative; display: grid; place-items: center; width: 130px; height: 168px;
  border: 1px solid #d5c48e; border-radius: 10px; transform: rotate(12deg);
  background: linear-gradient(155deg,#255463,#133548); box-shadow: 0 14px 35px #081c2f68;
}
.art-document::before, .art-document::after { content: ""; position: absolute; }
.art-document::before { inset-block: 0; inset-inline-start: 14px; border-inline-start: 1px solid #d5c48e65; }
.art-document::after { width: 40px; height: 1px; background: #d5c48e; inset-block-end: 32px; inset-inline-start: 45px; }
.art-globe { width: 58px; height: 58px; border: 1px solid #e1cc96; border-radius: 50%; position: relative; }
.art-globe::before { content: ""; position: absolute; inset: 0 16px; border: 1px solid #e1cc96; border-radius: 50%; }
.art-globe::after { content: ""; position: absolute; inset: 18px 2px; border-block: 1px solid #e1cc96; }

.service-section { padding-block: 31px 40px; }
.service-section h2 { margin: 0 0 17px; font-size: clamp(1.35rem, 2.7vw, 1.95rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.service-card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: 20px; min-height: 212px; border: 1px solid #dce4e5; border-radius: 13px;
  color: var(--ink); background: white; text-decoration: none; box-shadow: 0 3px 12px #142a3710;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover, .service-card[aria-expanded="true"] { border-color: #a1c5bb; box-shadow: 0 5px 16px #142a3719; }
.service-icon {
  color: #176b64; background: #e6f2ef; width: 42px; height: 42px;
  border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
}
.service-icon i { display: block; position: relative; width: 22px; height: 17px; border: 1.5px solid currentColor; border-radius: 3px; }
.service-document i { width: 16px; height: 21px; }
.service-document i::after, .service-card-icon i::after {
  content: ""; position: absolute; inset-inline: 3px; top: 6px; height: 3px;
  border-block: 1px solid currentColor;
}
.service-grid-icon i { width: 18px; height: 18px; }
.service-grid-icon i::before, .service-grid-icon i::after { content: ""; position: absolute; background: currentColor; }
.service-grid-icon i::before { inset-block: 0; width: 1px; inset-inline-start: 50%; }
.service-grid-icon i::after { inset-inline: 0; height: 1px; inset-block-start: 50%; }
.service-card h3 { margin: 0 0 6px; font-size: clamp(1.02rem, 1.8vw, 1.22rem); }
.service-card p { color: var(--muted); margin: 0 0 13px; }
.service-action { margin-top: auto; color: var(--home-teal); font-size: .9rem; font-weight: 740; text-decoration: underline; text-underline-offset: .24em; }
.service-detail {
  border: 1px solid #b8d2c9; border-radius: 13px; margin-top: 15px; padding: 21px;
  background: #f0f7f4; scroll-margin-block: 20px;
}
.service-detail h3 { font-size: 1.22rem; margin: 0; }
.service-detail p { margin: 7px 0 15px; max-width: 65ch; color: var(--muted); }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-actions a { display: inline-flex; align-items: center; text-decoration: none; }

.home-footer { font-size: 1rem; margin: 0; display: block; padding-block: 24px 27px; background: #142d45; color: #edf4f6; }
.footer-main {
  --footer-logo-width: 144px; --footer-logo-height: 110px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; direction: ltr;
}
.footer-brand, .footer-partner { width: min(var(--footer-logo-width), 100%); }
.footer-brand, .footer-partner a { height: var(--footer-logo-height); border-radius: 9px; }
.footer-brand { justify-self: start; align-self: end; justify-content: center; padding: 9px 13px; background: #fbfdff; }
.footer-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 37px; text-align: center; font-style: normal; }
.footer-contact span { color: #adc4d0; display: block; font-size: .83rem; }
.footer-contact a { color: #edf4f6; text-decoration: none; }
.footer-partner { justify-self: end; display: grid; justify-items: center; gap: 6px; margin: 0; }
.footer-partner figcaption { color: #edf4f6; font-size: .88rem; font-weight: 650; text-align: center; }
.footer-partner a { display: block; width: 100%; }
.footer-partner a:focus-visible { outline: 2px solid var(--home-gold); outline-offset: 4px; }
.footer-partner img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: white; }
[dir="rtl"] .footer-contact, [dir="rtl"] .footer-partner { direction: rtl; }
.partners { border-top: 1px solid #3d5668; margin-top: 20px; padding-top: 15px; }
.partners-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.partners-heading h2 { margin: 0; font-size: 1rem; }
.partners-heading p { color: #abc0cd; font-size: .81rem; margin: 3px 0 0; }
.partner-controls { display: flex; flex: none; gap: 7px; }
.partner-controls button {
  width: 39px; height: 39px; border: 1px solid #5f7484; border-radius: 8px; background: #1e3a50;
  color: white; font-size: 1.45rem; line-height: 1; display: grid; place-items: center;
}
.partner-controls button:enabled:hover { background: #2a5066; }
[dir="rtl"] .partner-controls span { transform: scaleX(-1); }
.partner-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin: 0; padding: 0; list-style: none;
}
.partner-list li {
  scroll-snap-align: start; border: 1px solid #425b6a; border-radius: 9px;
  min-height: 49px; padding: 8px 10px; display: grid; place-items: center;
  text-align: center; font-size: .9rem; color: #eaf2f3; background: #20394e;
}

@media (max-width: 850px) {
  .home-wrap, .home .top-inner { width: calc(100% - 42px); }
  .intro-inner { min-height: 282px; }
  .art-document { scale: .83; }
  .service-card { padding: 15px; }
}
@media (max-width: 660px) {
  .home .top-inner { min-height: 70px; gap: 7px 12px; }
  .header-phone { font-size: .85rem; }
  .home-account-actions { flex-wrap: wrap; justify-content: end; gap: 5px; }
  .intro-inner { min-height: 243px; padding-block: 35px; }
  .intro-copy { max-width: 75%; }
  .intro-art { opacity: .57; width: 32%; }
  .art-document { scale: .62; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { min-height: 0; }
  .service-section { padding-block: 22px 28px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .footer-contact { grid-column: 1 / -1; grid-row: 2; gap: 12px 23px; }
  .footer-partner { grid-column: 2; grid-row: 1; }
  .partner-list { grid-auto-columns: calc((100% - 10px) / 2); }
}
@media (max-width: 440px) {
  .home-wrap, .home .top-inner { width: calc(100% - 30px); }
  .home .top-inner { padding-block: 9px; grid-template-columns: minmax(0, 1fr) auto; }
  .home-account-actions { grid-column: 2; grid-row: 1 / span 2; }
  .header-phone { grid-column: 1; justify-self: start; }
  .intro-copy { max-width: 100%; }
  .intro-copy h1 { max-width: 17ch; }
  .intro-art { inset-inline-end: -17px; width: 37%; opacity: .24; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
}
