@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --g: #0d4f4a;
  --g2: #156b64;
  --gold: #c9922a;
  --cream: #f7f9f8;
  --ink: #1a2f2d;
  --muted: #5a6e6b;
  --line: #e3e9e6;
  --soft: #eef6f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1160px, 92%); margin: auto; }

/* Header */
header {
  height: 86px;
  background: #fff;
  border-bottom: 1px solid #edf0ee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(7, 94, 89, 0.06);
}
.head {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  width: 155px;
  height: auto;
  display: block;
  object-fit: contain;
}
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
}
nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 32px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--g); }
nav a.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--g);
  bottom: 20px;
  right: 0;
  left: 0;
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  border: 0;
  background: var(--g);
  color: #fff;
  border-radius: 22px;
  padding: 9px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
}
.support {
  border: 0;
  background: var(--gold);
  color: #fff;
  border-radius: 28px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.support:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232, 154, 32, 0.35); }
.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: var(--g);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #0a3d3a 0%, #0d4f4a 45%, #156b64 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
}
.page-hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 17px;
  font-weight: 400;
}

/* Home hero */
.hero-home {
  padding: 0;
  background: var(--cream);
}
.hero-home .two {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
}
.hero-home .copy h2 {
  font-size: 34px;
  color: var(--g);
  margin: 0 0 18px;
  line-height: 1.4;
  font-weight: 800;
}
.hero-home .copy p {
  font-size: 16px;
  color: #456762;
  margin: 0 0 24px;
  line-height: 2;
}
.hero-home img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px 80px 20px 80px;
  box-shadow: 0 12px 40px rgba(7, 94, 89, 0.15);
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  border-radius: 28px;
  padding: 13px 26px;
  border: 2px solid var(--g);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}
.primary { background: var(--g); color: #fff; }
.primary:hover { background: var(--g2); }
.secondary { background: #fff; color: var(--g); }
.secondary:hover { background: var(--soft); }

/* Sections */
section { padding: 70px 0; }
.title { text-align: center; margin-bottom: 40px; }
.title h2 {
  margin: 0 0 10px;
  color: var(--g);
  font-size: 30px;
  font-weight: 800;
}
.title p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.9;
  max-width: 640px;
  font-size: 15px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  min-height: 200px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(7, 94, 89, 0.1);
}
.icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #e1f2e9;
  font-size: 28px;
}
.card:nth-child(2) .icon { background: #dceeff; }
.card:nth-child(3) .icon { background: #ffe1e2; }
.card:nth-child(4) .icon { background: #ffe8b5; }
.card:nth-child(5) .icon { background: #e7ddff; }
.card:nth-child(6) .icon { background: #d9f0f0; }
.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--g);
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* Two column */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px 70px 16px 70px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.two .copy h2 {
  color: var(--g);
  font-size: 26px;
  margin: 0 0 16px;
  font-weight: 800;
}
.two .copy p {
  color: #456762;
  line-height: 2;
  margin: 0 0 14px;
}
.box-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.box-list span {
  background: var(--soft);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content pages */
.content h2 {
  color: var(--g);
  font-size: 24px;
  margin: 36px 0 14px;
  font-weight: 800;
}
.content h2:first-child { margin-top: 0; }
.content p {
  color: #3d5a56;
  line-height: 2.05;
  margin: 0 0 16px;
  font-size: 15.5px;
}
.content ul {
  padding-right: 22px;
  margin: 0 0 20px;
  color: #3d5a56;
  line-height: 2.1;
}
.content li { margin-bottom: 8px; }

/* Support grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.support-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--line);
}
.support-card h3 {
  color: var(--g);
  margin: 0 0 10px;
  font-size: 18px;
}
.support-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

/* News */
.news {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.news-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-item .body {
  padding: 20px 22px;
}
.news-item h3 {
  margin: 0 0 8px;
  color: var(--g);
  font-size: 17px;
  font-weight: 700;
}
.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.news-item .date {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.contact-info h3 {
  color: var(--g);
  margin: 0 0 12px;
  font-size: 20px;
}
.contact-info p, .contact-info a {
  display: block;
  margin-bottom: 10px;
  color: #456762;
  font-size: 15px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 14px;
  background: #fafafa;
}
.contact-form button {
  background: var(--g);
  color: #fff;
  border: 0;
  border-radius: 28px;
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

/* Footer */
footer {
  background: #082e2c;
  color: #d4e8e5;
  padding: 50px 0 0;
  margin-top: 40px;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}
.foot h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.foot a, .foot p {
  display: block;
  margin-bottom: 8px;
  color: #b8d4d0;
  font-size: 14px;
  line-height: 1.7;
}
.foot .support {
  margin-top: 10px;
  font-size: 13px;
  padding: 10px 18px;
}
.foot .copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 13px;
  color: #8fb5b0;
  flex-wrap: wrap;
  gap: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  place-items: center;
  padding: 20px;
}
.modal.show { display: grid; }
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-box .close {
  position: absolute;
  top: 14px;
  left: 18px;
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}
.modal-box h2 {
  margin: 0 0 12px;
  color: var(--g);
  font-size: 22px;
}
.modal-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 18px;
}
.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 14px;
}
.modal-box .mail {
  width: 100%;
  background: var(--g);
  color: #fff;
  border: 0;
  border-radius: 28px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

/* English direction adjustments */
body.en { direction: ltr; }
body.en .logo { margin-right: 0; }
body.en nav a.active:after { right: 0; left: 0; }
body.en .hero-home img { border-radius: 80px 20px 80px 20px; }
body.en .two img { border-radius: 70px 16px 70px 16px; }
body.en .modal-box .close { left: auto; right: 18px; }
body.en .content ul { padding-right: 0; padding-left: 22px; }

/* Responsive */
@media (max-width: 900px) {
  nav { display: none; position: absolute; top: 86px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 16px; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  nav.open { display: flex; }
  nav a { padding: 14px 0; width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
  nav a.active:after { display: none; }
  .menu { display: block; }
  .cards, .support-grid { grid-template-columns: 1fr 1fr; }
  .hero-home .two, .two, .contact-grid, .news, .foot { grid-template-columns: 1fr; }
  .hero-home img, .two img { height: 260px; border-radius: 16px; }
  body.en .hero-home img, body.en .two img { border-radius: 16px; }
  .page-hero h1 { font-size: 28px; }
  .hero-home .copy h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .cards, .support-grid, .news, .box-list { grid-template-columns: 1fr; }
  .logo { width: 120px; }
  .support { padding: 10px 14px; font-size: 13px; }
  .page-hero { padding: 50px 0 40px; }
  .page-hero h1 { font-size: 24px; }
  .foot .copy { flex-direction: column; text-align: center; }
}
