body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f8fa;
  color: #000;
  line-height: 1.7;
}

/* HERO */
.hero {
  width: 100%;
  height: 70vh;
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('https://static.tildacdn.pub/tild3838-3834-4231-b936-353530613263/ImageToStlcom_merged.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  animation: fadeIn 1.2s ease-out;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero p {
  font-size: 24px;
  opacity: 0.95;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CONTENT BLOCKS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #22325f;
  text-align: center;
}

.section-text {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: justify;
  text-align-last: center;
}

/* GRID / CARDS */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  width: 260px;
  min-height: 200px;
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 38px rgba(0,0,0,0.12);
  filter: brightness(1.03);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #22325f;
}

.card a {
  color: #22325f;
  text-decoration: none;
  border-bottom: 1px dashed #22325f;
}

.card a:hover {
  border-bottom-style: solid;
}

/* SPECIALISTS */
.specialist-card {
  text-align: center;
  padding-top: 20px;
  cursor: pointer;
}

.spec-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  display: block;
}

.specialist-card:hover .spec-photo {
  transform: scale(1.07);
}

/* CONTACTS */
.contacts {
  background: #efefef;
  padding: 70px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1.6;
}

.contacts strong {
  font-size: 26px;
}

/* FOOTER */
.footer {
  background: #303030;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 18px; }
  .section-title { font-size: 26px; }
  .section-text { font-size: 18px; }
  .card {
    width: 100%;
    max-width: 320px;
  }
}


/* --- DOCUMENTS PAGE STYLES --- */

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.doc-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 10px;
    background: #fafafa;
}

.doc-item img {
    width: 280px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doc-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #2a7de1;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: #1f66b8;
}

.photo {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 1 / 1.3;
}
