* { box-sizing: border-box; }

body {
  margin: 0;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.container { width: min(1280px, 94vw); margin: 0 auto; }

.intro {
  background: linear-gradient(120deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  border-top: 1px solid #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 52px 0;
}

.intro h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 54px); letter-spacing: -0.03em; }
.intro p { margin: 0; color: #475569; max-width: 720px; line-height: 1.8; }

.contact-wrap {
  padding: 42px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.form-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  color: #0f172a;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #dc2626;
  outline: none;
  box-shadow: 0 0 0 4px rgba(220, 33, 58, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.file-field {
  display: grid;
  gap: 10px;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #c41e3a 0%, #f97316 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(196, 30, 58, 0.18);
}

.file-name {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.send-btn {
  border: 0;
  border-radius: 16px;
  background: #c41e3a;
  color: #fff;
  padding: 14px 24px;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.send-btn:hover {
  background: #ad172f;
  transform: translateY(-1px);
}

.form-status {
  margin: 0;
  font-size: 14px;
  min-height: 24px;
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

.side-info {
  display: grid;
  gap: 16px;
}

.side-info article {
  padding: 24px;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.side-info h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #0f172a;
}

.side-info p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

#branchesMap {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.site-footer {
  margin-top: 32px;
  background: #0f172a;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 32px 0;
}
.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}
.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  text-decoration: none;
}
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .send-btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
