/* Shared styles — Marina Strizhevsky D.O. static rebuild
   Light polish: spacing/type only; layout unchanged. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: #222;
  background: #fff;
}

a {
  color: #2f6fed;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
.site-header {
  background: #fff;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid #eef1f5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}

.site-title {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b9bd5;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-nav a {
  color: #111;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav .link-icon {
  font-size: 0.85em;
}

/* Home hero */
.hero {
  padding: 1rem 1.25rem 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 340px;
  border: 1px solid #eef1f5;
  border-radius: 2px;
  overflow: hidden;
}

.hero-photo {
  background: #c8c8c8;
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.25rem 1.75rem;
  background: #fff;
}

.hero-specialty {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111;
}

.hero-towns {
  margin: 0.4rem 0 1.1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111;
}

.hero-tagline {
  margin: 0 0 1.35rem;
  max-width: 20rem;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  color: #444;
}

.btn {
  display: inline-block;
  background: #2f6fed;
  color: #fff !important;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: #1f5ad4;
  text-decoration: none !important;
}

.hero-phone {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-phone a {
  color: #111;
  text-decoration: none;
}

.hero-phone a:hover,
.hero-phone a:focus {
  text-decoration: underline;
}

/* About — compact under hero */
.about {
  padding: 1.5rem 1.25rem 2.25rem;
  text-align: center;
  max-width: 640px;
}

.about h2 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #5b9bd5;
}

.about p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #444;
}

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

.about-compact {
  padding: 1.1rem 1.25rem 2rem;
  max-width: 600px;
}

.about-compact h2 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.about-compact p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
}
.about-more {
  margin-top: 1.35rem;
  font-weight: 500;
  color: #222;
}


/* Inner pages */
.content-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 4px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 720px;
}

.content-card h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #0f3d5c;
  font-size: 1.45rem;
}

.content-card h2 {
  margin: 1.5rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #0f3d5c;
  font-size: 1.1rem;
}

.content-card h2:first-of-type {
  margin-top: 1.25rem;
}

.content-card p {
  margin: 0 0 0.85rem;
}

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

.office-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.office-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid #eef1f5;
}

.office-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.office-list li:first-child {
  padding-top: 0;
}

.office-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.office-list address {
  font-style: normal;
  margin: 0;
  line-height: 1.55;
  color: #444;
}

.cert-list,
.edu-list,
.member-list {
  margin: 0 0 0.25rem;
  padding-left: 1.2rem;
  text-align: left;
  color: #333;
}

.cert-list li,
.edu-list li,
.member-list li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  border-top: 1px solid #eef1f5;
  background: #fff;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: #777;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.9rem 0 0.75rem;
  }

  .site-nav {
    gap: 0.35rem 0.9rem;
    font-size: 0.7rem;
  }

  .hero {
    padding: 0.75rem 0 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .wrap.hero {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  .hero-photo {
    max-height: 320px;
  }

  .hero-photo img {
    height: auto;
    max-height: 320px;
    margin: 0 auto;
  }

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

  .content-card {
    padding: 1.35rem 1.15rem;
    margin: 1.15rem auto 2rem;
  }
}
