:root {
  --bg: #101514;
  --bg-soft: #171f1d;
  --panel: rgba(20, 28, 26, 0.86);
  --panel-solid: #18221f;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --surface: #20302c;
  --text: #f6faf6;
  --muted: #b6c8bf;
  --accent: #42e2c1;
  --accent-strong: #11a995;
  --warm: #f3b36a;
  --rose: #ff7f6d;
  --line: rgba(219, 235, 226, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --overlay: rgba(8, 14, 13, 0.62);
}

:root[data-theme='light'] {
  --bg: #f4f8f6;
  --bg-soft: #eef4ef;
  --panel: rgba(255, 255, 250, 0.9);
  --panel-solid: #ffffff;
  --panel-soft: rgba(14, 45, 39, 0.055);
  --surface: #edf5f0;
  --text: #10211d;
  --muted: #536b63;
  --accent: #08a890;
  --accent-strong: #067d70;
  --warm: #b66f28;
  --rose: #c95748;
  --line: rgba(17, 64, 54, 0.16);
  --shadow: 0 22px 52px rgba(32, 58, 49, 0.13);
  --overlay: rgba(17, 31, 28, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Manrope', 'Noto Sans Armenian', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(66, 226, 193, 0.08), transparent 34%, rgba(243, 179, 106, 0.08)),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

::selection {
  background: rgba(66, 226, 193, 0.32);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--accent);
  color: #06231f;
  padding: 0.7rem 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(66, 226, 193, 0.7);
  outline-offset: 3px;
}

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

.page {
  width: min(1220px, 92vw);
  flex: 1;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 45;
  width: min(1220px, 92vw);
  margin: 0.95rem auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.82rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--text);
  font-family: 'Unbounded', 'Noto Sans Armenian', sans-serif;
  min-width: 245px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #08211e;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.76rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.52rem 0.64rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--panel-soft);
}

.menu-call {
  margin-top: auto;
  display: none;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #06231f;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  width: calc(100% - 0.5rem);
}

.nav a.menu-call {
  display: none;
  color: #06231f;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.control-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 226, 193, 0.44);
}

.theme-icon,
.lang-globe {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  color: currentColor;
}

.theme-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center top / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 4px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) left center / 4px 2px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) right center / 4px 2px no-repeat;
}

.theme-icon[data-icon='moon'] {
  border: 0;
  border-radius: 50%;
  background: currentColor;
}

.theme-icon[data-icon='moon']::before {
  inset: -1px 0 auto auto;
  width: 13px;
  height: 18px;
  border-radius: 50%;
  background: var(--panel-solid);
}

.lang-globe {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.lang-globe::before,
.lang-globe::after {
  content: '';
  position: absolute;
  opacity: 0.78;
}

.lang-globe::before {
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 7px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.lang-globe::after {
  left: 2px;
  right: 2px;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}

.lang-btn {
  width: auto;
  min-width: 68px;
  padding: 0 0.56rem;
  gap: 0.38rem;
}

.lang-btn .lang-text {
  margin-left: 0.1rem;
  font-weight: 800;
  font-size: 0.82rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-6px);
}

.menu-toggle span:last-child {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 32;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.hero {
  min-height: 600px;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  font-size: 0.82rem;
  letter-spacing: 0;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(66, 226, 193, 0.1);
  border: 1px solid rgba(66, 226, 193, 0.26);
  margin: 0 0 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Unbounded', 'Noto Sans Armenian', sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: 3.35rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.16rem;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.hero-lead {
  max-width: 58ch;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  min-height: 46px;
  text-decoration: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 800;
  padding: 0.78rem 1.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #06231f;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.hero-quick {
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.quick-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: var(--panel-soft);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

a.quick-card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 226, 193, 0.48);
  background: rgba(66, 226, 193, 0.09);
}

.quick-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.hero-visual {
  margin: 0;
  min-height: 0;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.visual-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 310px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: rgba(12, 22, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.visual-badge strong {
  display: block;
  color: #ffffff;
  margin-bottom: 0.22rem;
}

.visual-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  margin-top: 4.4rem;
  position: relative;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.section-title {
  margin-bottom: 0.35rem;
}

.section > h1.section-title {
  max-width: 860px;
}

.section-lead {
  margin: 0.55rem 0 1.1rem;
  color: var(--muted);
  max-width: 70ch;
}

.flow-list {
  display: grid;
  gap: 0.75rem;
}

.flow-step {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--panel-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.9rem;
  align-content: start;
}

.flow-step span {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 179, 106, 0.14);
  color: var(--warm);
  font-weight: 900;
}

.flow-step h3 {
  margin-top: 0.1rem;
}

.flow-step p {
  grid-column: 2;
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 0.9rem;
}

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

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

.grid-1 {
  grid-template-columns: 1fr;
}

.card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  background: var(--panel-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 226, 193, 0.54);
  background: rgba(255, 255, 255, 0.075);
}

form.card:hover,
.contact-block.card:hover {
  transform: none;
  border-color: var(--line);
  background: var(--panel-soft);
}

.card h3 {
  margin-bottom: 0.52rem;
  font-size: 1.06rem;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.96rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 1rem;
}

.card li {
  margin: 0.4rem 0;
}

.case-card {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 9, 0.04), rgba(5, 10, 9, 0.84));
}

.case-card .case-inner {
  position: relative;
  z-index: 1;
  padding: 0.95rem;
}

.case-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.review cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--accent);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.9rem;
  align-items: start;
}

.contact-block p {
  margin: 0.2rem 0 0.7rem;
  color: var(--muted);
}

.contact-block a {
  color: var(--text);
}

label {
  display: block;
  color: var(--muted);
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
  font-size: 0.87rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 0.75rem;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--rose);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.submit {
  width: 100%;
  margin-top: 0.75rem;
  border: 0;
  border-radius: var(--radius);
  min-height: 46px;
  padding: 0.78rem;
  font-weight: 800;
  color: #06231f;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit:hover {
  transform: translateY(-1px);
}

.submit:disabled {
  cursor: progress;
  opacity: 0.64;
  transform: none;
}

.form-status {
  display: none;
  margin: 0.75rem 0 0;
  border: 1px solid rgba(66, 226, 193, 0.34);
  border-radius: var(--radius);
  background: rgba(66, 226, 193, 0.1);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font-size: 0.92rem;
}

.form-status.is-visible {
  display: block;
}

.tiny-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer {
  width: min(1220px, 92vw);
  margin: auto auto 1rem;
  border-top: 1px solid var(--line);
  padding: 1.05rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .topbar {
    border-radius: 18px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 55;
  }

  .nav {
    position: fixed;
    top: 86px;
    left: 4vw;
    right: 4vw;
    width: 92vw;
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 0.8rem 5rem;
    background: var(--panel-solid);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 60;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 115px);
    overflow: auto;
    box-shadow: var(--shadow);
  }

  .nav a {
    width: 100%;
  }

  .nav a.menu-call {
    display: inline-flex;
    position: sticky;
    bottom: 0;
    margin-top: 0.6rem;
  }

  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 2rem 0 0;
  }

  h1 {
    max-width: 14ch;
    font-size: 3.05rem;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .grid-3,
  .grid-2,
  .hero-quick,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 18px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 55;
  }

  .nav {
    position: fixed;
    top: 86px;
    left: 4vw;
    right: 4vw;
    width: 92vw;
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 0.8rem 5rem;
    background: var(--panel-solid);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 60;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 115px);
    overflow: auto;
    box-shadow: var(--shadow);
  }

  .nav a {
    width: 100%;
  }

  .nav a.menu-call {
    display: inline-flex;
    position: sticky;
    bottom: 0;
    margin-top: 0.6rem;
  }

  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .toolbar {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .page,
  .topbar,
  .footer {
    width: 94vw;
  }

  .topbar {
    top: 8px;
    margin-top: 0.55rem;
    padding: 0.58rem;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .control-btn,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy {
    padding-top: 1.25rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
  }

  .quick-card {
    min-height: 82px;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .visual-badge {
    position: static;
    max-width: none;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }

  .section {
    margin-top: 3rem;
  }

  .split-section {
    padding: 2rem 0;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .flow-step p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
