:root {
  --bg: #ffffff;
  --ink: #172326;
  --muted: #657174;
  --line: #dfe7e6;
  --soft: #f5f8f7;
  --accent: #2e7b75;
  --accent-dark: #15504c;
  --shadow: 0 18px 50px rgba(23, 35, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: clamp(260px, 48vw, 520px);
  overflow: hidden;
  background: linear-gradient(90deg, #6d6d6d 0%, #888888 50%, #6d6d6d 100%);
}

.hero__image {
  width: 100%;
  height: clamp(310px, 54vw, 620px);
  display: block;
  object-fit: contain;
  object-position: center top;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 85%);
}

.site-shell {
  width: min(920px, calc(100% - 32px));
  margin: clamp(-86px, -8vw, -44px) auto 0;
  position: relative;
  z-index: 2;
}

.intro {
  text-align: center;
  padding: 0 0 28px;
}

.intro__kicker {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  line-height: 1.12;
  font-weight: 700;
}

.intro__subtitle {
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.22rem);
}

.language-switch,
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
}

.language-switch {
  gap: 8px;
  margin: 0 auto;
}

.lang-button,
.tab-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lang-button {
  min-width: 52px;
  min-height: 38px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
}

.lang-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 123, 117, 0.35);
  color: var(--accent-dark);
}

.lang-button.is-active,
.tab-button.is-active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.tabs {
  gap: 10px;
  margin: 10px auto 28px;
  flex-wrap: wrap;
}

.tab-button {
  min-height: 44px;
  min-width: 124px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.content-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 46px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.content-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  line-height: 1.3;
}

.content-panel h3 {
  margin: 30px 0 14px;
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.copy-block p,
.content-panel > p {
  color: var(--muted);
  margin-bottom: 15px;
}

.simple-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 22px;
}

.simple-list li::marker {
  color: var(--accent);
}

.muted {
  margin: 18px 0 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.work-card {
  min-height: 116px;
  display: grid;
  align-content: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(46, 123, 117, 0.12), rgba(255, 255, 255, 0.82)),
    var(--soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.contact-list a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-list a:hover {
  background: #ffffff;
  border-color: rgba(46, 123, 117, 0.45);
  transform: translateY(-2px);
}

.contact-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-dark);
  fill: currentColor;
  box-shadow: inset 0 0 0 1px rgba(46, 123, 117, 0.14);
}

.contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
  align-self: end;
}

.contact-list strong {
  color: var(--ink);
  overflow-wrap: anywhere;
  align-self: start;
}

.site-footer {
  width: min(920px, calc(100% - 32px));
  margin: 34px auto 28px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

html[dir="ltr"] body {
  font-family: "Inter", "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

html[dir="ltr"] .intro,
html[dir="ltr"] .site-footer {
  text-align: center;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 22px, 920px);
    margin-top: -58px;
  }

  .intro {
    padding-bottom: 22px;
  }

  .tabs {
    gap: 8px;
  }

  .tab-button {
    flex: 1 1 31%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .work-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .content-panel {
    padding: 22px;
  }
}

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